BarChart constructor
const
BarChart({
- Key? key,
- required List<
BarChartData> data, - double spacing = 20,
- String? title,
- TextStyle? titleStyle,
- TextStyle? xAxisLabelStyle,
- TextStyle? yAxisLabelStyle,
- String yAxisLabelFormatter(
- double value
- String xAxisLabelFormatter(
- dynamic label
- void onBarTap()?,
- String barTooltipBuilder()?,
- double yAxisMargin = 30,
- 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,
});