ChartConfig constructor

ChartConfig({
  1. ChartType? type,
  2. double? maxValueY,
  3. double? maxY,
  4. TitlesData? title,
  5. ChartTooltip? tooltip,
  6. ChartLegend? legend,
  7. ChartToolbox? toolbox,
  8. GridData? grid,
  9. XYAxis? xAxis,
  10. XYAxis? yAxis,
  11. List<Series> series = const [],
})

Implementation

ChartConfig({
  ChartType? type,
  this.maxValueY,
  double? maxY,
  this.title,
  this.tooltip,
  this.legend,
  this.toolbox,
  this.grid,
  this.xAxis,
  this.yAxis,
  List<Series> series = const [],
}) : maxY = (type != getChartType('pie')) && maxY != null
         ? getMaxSeriesValue(series)
         : 100,
     series = List<Series>.unmodifiable(series),
     type = type ?? ChartType.bar;