BaseChartConfig constructor

BaseChartConfig({
  1. required ChartType type,
  2. TitlesData? title,
  3. ChartTooltip? tooltip,
  4. ChartLegend? legend,
  5. ChartToolbox? toolbox,
  6. GridData? grid,
  7. required List<Series> series,
  8. ChartTheme? theme,
  9. ChartController? controller,
  10. ChartAxisConfig? xAxisConfig,
  11. 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),
     );