MultiBar constructor

MultiBar({
  1. required num xValue,
  2. required List<BarData> yValues,
  3. BarGroupArrangement arrangement = BarGroupArrangement.series,
  4. double spacing = 10.0,
  5. BarDataStyle? style,
  6. double padding = 10,
})

Defines a Group of Multiple Bars

A list of BarData needs to be provided which will provide us the Y-Value for each individual bar in the group.

See Also: BarGroup

Implementation

MultiBar({
  required super.xValue,
  required this.yValues,
  // defaults to series i.e. side by side
  this.arrangement = BarGroupArrangement.series,
  this.spacing = 10.0,
  super.style,
  super.padding,
})  : assert(yValues.isNotEmpty, "At least one yValue is required!"),
      assert(spacing >= 0.0, "groupSpacing cannot be Negative!");