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. ValueChanged<double?>? onSelectionChanged,
  9. BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
  10. IntervalsProvider xIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineXIntervals.create,
  11. 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.onSelectionChanged,
  this.adjustBounds = AdjustBounds.noAdjustment,
  this.xIntervalsProvider = OutlineXIntervals.create,
  this.yIntervalsProvider = OutlineYIntervals.create,
});