Chart constructor

const Chart({
  1. Key? key,
  2. required List<ChartLayer> layers,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. Labels? leftLabels,
  5. Labels? rightLabels,
  6. Labels? topLabels,
  7. Labels? bottomLabels,
  8. bool allowSelection(
    1. double? value
    )?,
  9. ValueChanged<double?>? onSelectionChanged,
  10. BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
  11. IntervalsProvider xIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineXIntervals.create,
  12. IntervalsProvider yIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineYIntervals.create,
})

Implementation

const Chart({
  super.key,
  required this.layers,
  this.padding = EdgeInsets.zero,
  this.leftLabels,
  this.rightLabels,
  this.topLabels,
  this.bottomLabels,
  this.allowSelection,
  this.onSelectionChanged,
  this.adjustBounds = AdjustBounds.noAdjustment,
  this.xIntervalsProvider = OutlineXIntervals.create,
  this.yIntervalsProvider = OutlineYIntervals.create,
});