SeriesBasedChartOptions
Base options for a series based chart
| Name | Type | Description |
|---|---|---|
| colorGenerator? | ColorGenerator | Optional function to call in order to establish the color to be used for each series |
| data? | Array<ObjectData> | Optional data to load into the chart. |
| dataSource? | DataSource | Optional data source (of type , meaning both and are supported) from which to retrieve data to load into the chart. |
| dataSourceFilter? | ChartModelFilter | When you provide , you can also provide a filter which accepts or rejects specific nodes/groups in the data source. |
| defaultColor? | string | Optional color to use for every series. Overrides any colorGenerator. |
| emptyMessage? | string | Message to display when the chart has no data. Defaults to "No data". |
| grouped? | boolean | If true, the data will be grouped, if the chart type supports it (eg Bar/Column). |
| groupField? | string | The name of the field that identifies which group a data point belongs to. Defaults to . |
| height? | number | Height for the chart. If omitted, height is computed from the width of the chart's container |
| legend? | boolean | LegendSpec | Either a boolean true/false, indicating the legend should be shown/hidden, or a spec for a legend. |
| resizeObserver? | boolean | Defaults to true, meaning the chart will redraw when its container element resizes. |
| series | Array<T> | Definition of the chart series' to display. You can display multiple series on a chart. |
| style? | ChartStyleOptions | Styles for legend and grid. |
| subtitle? | SubtitleSpec | Subtitle for the chart. |
| title? | ChartTitleSpec | Title for the chart. |
| titlePadding? | number | Padding to leave underneath the title |
| tooltip? | TooltipOptions | Options for a tooltip for the chart. |
| url? | string | Optional URL from which to retrieve data to load into the chart |
| width? | number | Width for the chart. If omitted, width is computed from the width of the chart's container |
| zoom? | {
enabled:boolean, initialValue:number, range:[number, number] } | Optional zoom configuration. |