Chart constructor
const
Chart({
- Key? key,
- required List<
ChartLayer> layers, - EdgeInsets padding = EdgeInsets.zero,
- Labels? leftLabels,
- Labels? rightLabels,
- Labels? topLabels,
- Labels? bottomLabels,
- bool allowSelection(
- double? value
- ValueChanged<
double?> ? onSelectionChanged, - BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
- IntervalsProvider xIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
- IntervalsProvider yIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
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,
});