BarChart constructor

const BarChart({
  1. required List<BarDatum> data,
  2. BarOrientation orientation = BarOrientation.vertical,
  3. num? min,
  4. num? max,
  5. bool showLabels = true,
  6. bool showValues = false,
  7. int barWidth = 2,
  8. int gap = 1,
  9. Style? defaultBarStyle,
  10. Style? labelStyle,
  11. Style? valueStyle,
  12. String formatValue(
    1. num value
    )?,
})

Implementation

const BarChart({
  required this.data,
  this.orientation = BarOrientation.vertical,
  this.min,
  this.max,
  this.showLabels = true,
  this.showValues = false,
  this.barWidth = 2,
  this.gap = 1,
  this.defaultBarStyle,
  this.labelStyle,
  this.valueStyle,
  this.formatValue,
}) : assert(barWidth > 0 && gap >= 0);