ChartConfig constructor
ChartConfig({
- ChartType? type,
- double? maxValueY,
- double? maxY,
- TitlesData? title,
- ChartTooltip? tooltip,
- ChartLegend? legend,
- ChartToolbox? toolbox,
- GridData? grid,
- XYAxis? xAxis,
- XYAxis? yAxis,
- 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;