BarChart constructor
BarChart({
- List<
String> labels = const [], - TextStyle? labelStyle,
- required List<
double> data, - bool reverse = false,
- bool displayValue = true,
- TextStyle? valueStyle,
- required BarCharGetColor getColor,
- BarCharGetIcon? getIcon,
- double barWidth = 32,
- double barSeparation = 12,
- required Duration animationDuration,
- double itemRadius = 10,
- double iconHeight = 0,
- double headerValueHeight = 16,
- Color? lineGridColor,
- bool roundValuesOnText = false,
- Curve animationCurve = Curves.easeInOutSine,
Implementation
BarChart(
{this.labels = const [],
this.labelStyle,
required this.data,
this.reverse = false,
this.displayValue = true,
this.valueStyle,
required this.getColor,
this.getIcon,
this.barWidth = 32,
this.barSeparation = 12,
required this.animationDuration,
this.itemRadius = 10,
this.footerHeight = 32,
this.iconHeight = 0,
this.headerValueHeight = 16,
this.lineGridColor,
this.roundValuesOnText = false,
this.animationCurve = Curves.easeInOutSine});