BarChart constructor

const BarChart({
  1. Key? key,
  2. required List<BarChartData> data,
  3. double spacing = 20,
  4. String? title,
  5. TextStyle? titleStyle,
  6. TextStyle? xAxisLabelStyle,
  7. TextStyle? yAxisLabelStyle,
  8. String yAxisLabelFormatter(
    1. double value
    )?,
  9. String xAxisLabelFormatter(
    1. dynamic label
    )?,
  10. void onBarTap(
    1. BarChartData
    )?,
  11. String barTooltipBuilder(
    1. BarChartData
    )?,
  12. double yAxisMargin = 30,
  13. double xAxisMargin = 30,
})

Implementation

const BarChart({
  super.key,
  required this.data,
  this.spacing = 20,
  this.title,
  this.titleStyle,
  this.xAxisLabelStyle,
  this.yAxisLabelStyle,
  this.yAxisLabelFormatter,
  this.xAxisLabelFormatter,
  this.onBarTap,
  this.barTooltipBuilder,
  this.yAxisMargin = 30,
  this.xAxisMargin = 30,
});