StackedColumnChartWidget constructor
const
StackedColumnChartWidget({
- Key? key,
- required List<
ChartDataSet> dataSets, - double barWidth = 30.0,
- double borderRadius = 4.0,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- Widget? header,
- BarCallback? onBarTap,
- bool isLoading = false,
- bool isError = false,
- double? height,
- EdgeInsets? padding,
- EdgeInsets? margin,
- ChartsConfig? config,
- int? xAxisLabelRotation,
- int? yAxisLabelRotation,
Implementation
const StackedColumnChartWidget({
super.key,
required this.dataSets,
this.barWidth = 30.0,
this.borderRadius = 4.0,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.header,
this.footer,
this.onBarTap,
this.isLoading = false,
this.isError = false,
this.height,
this.padding,
this.margin,
this.config,
this.xAxisLabelRotation,
this.yAxisLabelRotation,
}) : assert(barWidth > 0, 'Bar width must be positive');