VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=fillSpecWithData——VisActor/VMind api documents!!!###!!!
fillSpecWithData
Interface Description:
fillSpecWithData is used to fill data into a spec template to generate a complete spec. Different filling strategies will be adopted according to different chart types.
Returns the filled spec, which can be directly used for chart rendering
Usage Example:
In some cases, we may generate a chart only with data fields, without a specific dataset (for example, generate a chart based on the fields in the dataset before querying, and then complete the related queries based on the generated chart type and the fields in the chart). At this time, you can not pass the dataset when calling the generateChart method, generate the spec template, and then call the fillSpecWithData method to get the final spec for chart rendering: