State
configurationSpecifies the state of the ChartWizard component. If a state object is provided, the ChartWizard will neglect the dataSource and the creation of an initial state and will use this state instance instead.
In order to work as expected, the CharWizard requires the
stateobject to have defined data and series fields.
state
Objectstate.area
ObjectThe chart area configuration options. Represents the entire visible area of the chart.
Default: (required)
state.categoryAxis
ArrayThe category axis configuration options.
Default: (required)
state.categoryField
StringThe field which represents the configuration of the series.categoryField.
state.columns
ArraySpecifies the columns to be used for the ChartWizard component. An array of strings should be provided.
state.data
ArraySpecifies the data to be visualized in ChartWizard component.
ChartWizard component needs a specific type of data(
ChartWizardDataRow) to work as expected. This type of data, which is an array consists of single or multiple arrays of Objects, which have thefieldandvalueproperties.
state.initialSeries
ArrayThe initial series configuration of the chart.
state.legend
ObjectThe chart legend configuration options.
state.series
ArrayThe configuration of the chart series.
The series type is determined by the value of the type field. If a type value is missing, the type is assumed to be the one specified in seriesDefaults.
Some options accept function as argument. They will be evaluated for each point (supplied as parameter). The theme/seriesDefaults value will be used if no value is returned.
state.seriesType
StringThe series type of the chart.
The supported series types are:
- 'column'
- 'bar'
- 'line'
- 'pie'
- 'scatter'
state.stack
Boolean|ObjectThe stack configuration of the series.
Default: false
state.subtitle
ObjectThe chart subtitle configuration options or text.
state.title
Object|StringThe chart title configuration options or text.
state.valueAxis
ArrayThe value axis configuration options.
If set to true the category axis direction will be reversed. By default categories are listed from left to right and from bottom to top.
state.valueField
StringThe field which represents the configuration of the series.valueField.