BaseChartConfig constructor
BaseChartConfig({
- required ChartType type,
- TitlesData? title,
- ChartTooltip? tooltip,
- ChartLegend? legend,
- ChartToolbox? toolbox,
- GridData? grid,
- required List<
Series> series, - ChartTheme? theme,
- ChartController? controller,
- ChartAxisConfig? xAxisConfig,
- ChartAxisConfig? yAxisConfig,
Implementation
BaseChartConfig({
required this.type,
this.title,
this.tooltip,
this.legend,
this.toolbox,
this.grid,
required List<Series> series,
ChartTheme? theme,
this.controller,
this.xAxisConfig,
this.yAxisConfig,
}) : theme = theme ?? ChartTheme.light,
series = List<Series>.unmodifiable(
_maybeSampleLargeSeries(series, type),
);