BarGradientChartConfig constructor
BarGradientChartConfig({
- required List<
String> categories, - required List<
Series> series, - ChartTheme theme = ChartTheme.light,
- String gradientStart = '#42A5F5',
- String gradientEnd = '#0D47A1',
- double barWidthRatio = 0.6,
- bool showValues = true,
- void onBarTap()?,
- TitlesData? title,
- ChartTooltip? tooltip,
- ChartLegend? legend,
- ChartToolbox? toolbox,
- GridData? grid,
Implementation
BarGradientChartConfig({
required this.categories,
required super.series,
this.theme = ChartTheme.light,
this.gradientStart = '#42A5F5',
this.gradientEnd = '#0D47A1',
this.barWidthRatio = 0.6,
this.showValues = true,
this.onBarTap,
super.title,
super.tooltip,
super.legend,
super.toolbox,
super.grid,
}) : super(type: ChartType.barGradient);