BarGradientChartConfig constructor

BarGradientChartConfig({
  1. required List<String> categories,
  2. required List<Series> series,
  3. ChartTheme theme = ChartTheme.light,
  4. String gradientStart = '#42A5F5',
  5. String gradientEnd = '#0D47A1',
  6. double barWidthRatio = 0.6,
  7. bool showValues = true,
  8. void onBarTap(
    1. int index,
    2. double value
    )?,
  9. TitlesData? title,
  10. ChartTooltip? tooltip,
  11. ChartLegend? legend,
  12. ChartToolbox? toolbox,
  13. 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);