BarChart constructor

BarChart({
  1. List<String> labels = const [],
  2. TextStyle? labelStyle,
  3. required List<double> data,
  4. bool reverse = false,
  5. bool displayValue = true,
  6. TextStyle? valueStyle,
  7. required BarCharGetColor getColor,
  8. BarCharGetIcon? getIcon,
  9. double barWidth = 32,
  10. double barSeparation = 12,
  11. required Duration animationDuration,
  12. double itemRadius = 10,
  13. double footerHeight = 32,
  14. double iconHeight = 0,
  15. double headerValueHeight = 16,
  16. Color? lineGridColor,
  17. bool roundValuesOnText = false,
  18. 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});