ScrollableChart constructor
const
ScrollableChart({
- Key? key,
- required List<
ChartLayer> layers, - required double contentWidth,
- double contentInset = 0,
- ScrollableChartController? controller,
- EdgeInsets padding = EdgeInsets.zero,
- Labels? leftLabels,
- Labels? rightLabels,
- Labels? topLabels,
- Labels? bottomLabels,
- ValueChanged<
double?> ? onSelectionChanged, - ValueChanged<
double> ? onXPressed, - BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
- IntervalsProvider xIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
- IntervalsProvider yIntervalsProvider(
- BoundingBox bounds,
- List<
ChartItem> items
Implementation
const ScrollableChart({
super.key,
required this.layers,
required this.contentWidth,
this.contentInset = 0,
this.controller,
this.padding = EdgeInsets.zero,
this.leftLabels,
this.rightLabels,
this.topLabels,
this.bottomLabels,
this.onSelectionChanged,
this.onXPressed,
this.adjustBounds = AdjustBounds.noAdjustment,
this.xIntervalsProvider = OutlineXIntervals.create,
this.yIntervalsProvider = OutlineYIntervals.create,
});