SheetXL - v0.8.0-beta.25
    Preparing search index...

    Function createChart

    • Makes a chart outside a workbook: for a slide, a report, or a chart handed from one place to another as its JSON.

      Parameters

      • json: IChart.JSON

        The chart as IChart.toJSON answers it (a chart in a workbook restates the caches of every cell it plots in it), or made by hand with a model.

      • Optionaloptions: CreateChartOptions

      Returns Promise<IChart>

      The chart reads its model as it is: its values are the caches the JSON carries, its theme is the default or getStyles', and it has no cells to follow and no movable. Every read and write of IChart works, getLayout lays it out at a size, and @sheetxl/react's ChartElement draws it. Its writes are not undoable: it has no transaction store.

      The chart's code is loaded with the first chart, so this is asynchronous.