BarChartWidget constructor
const
BarChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - double barWidth = 20.0,
- double borderRadius = 8.0,
- bool barRounded = true,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- Widget? header,
- bool isGrouped = false,
- BarCallback? onBarTap,
- BarHoverCallback? onBarHover,
- bool isLoading = false,
- bool isError = false,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- ChartsConfig? config,
- int? xAxisLabelRotation,
- int? yAxisLabelRotation,
Implementation
const BarChartWidget({
super.key,
required this.dataSets,
this.barWidth = 20.0,
this.borderRadius = 8.0,
this.barRounded = true,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.header,
this.footer,
this.isGrouped = false,
this.onBarTap,
this.onBarHover,
this.isLoading = false,
this.isError = false,
this.height,
this.padding,
this.margin,
this.config,
this.xAxisLabelRotation,
this.yAxisLabelRotation,
});