ChartBase constructor
const
ChartBase({
- Key? key,
- required List<
ChartLayer> layers, - EdgeInsets padding = EdgeInsets.zero,
- Labels? leftLabels,
- Labels? rightLabels,
- Labels? topLabels,
- Labels? bottomLabels,
- BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
- IntervalsProvider xIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
- IntervalsProvider yIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
- required Widget builder(
- BuildContext context,
- BoundingBox bounds,
- List<
ChartItem> items, - EdgeInsets contentPadding,
- IntervalsProvider xIntervals,
- IntervalsProvider yIntervals,
- Widget? leftLabels,
- Widget? rightLabels,
- Widget? topLabels,
- Widget? bottomLabels,
Implementation
const ChartBase({
super.key,
required this.layers,
this.padding = EdgeInsets.zero,
this.leftLabels,
this.rightLabels,
this.topLabels,
this.bottomLabels,
this.adjustBounds = AdjustBounds.noAdjustment,
this.xIntervalsProvider = OutlineXIntervals.create,
this.yIntervalsProvider = OutlineYIntervals.create,
required this.builder,
});