ScrollableChart constructor

const ScrollableChart({
  1. Key? key,
  2. required List<ChartLayer> layers,
  3. required double contentWidth,
  4. double contentInset = 0,
  5. ScrollableChartController? controller,
  6. EdgeInsets padding = EdgeInsets.zero,
  7. Labels? leftLabels,
  8. Labels? rightLabels,
  9. Labels? topLabels,
  10. Labels? bottomLabels,
  11. ValueChanged<double?>? onSelectionChanged,
  12. ValueChanged<double>? onXPressed,
  13. BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
  14. IntervalsProvider xIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineXIntervals.create,
  15. IntervalsProvider yIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineYIntervals.create,
})

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,
});