ChartAxis constructor
const
ChartAxis({
- Key? key,
- String? name,
- double? plotOffset,
- double? plotOffsetStart,
- double? plotOffsetEnd,
- bool isVisible = true,
- bool anchorRangeToVisiblePoints = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- ChartRangePadding rangePadding = ChartRangePadding.auto,
- int labelRotation = 0,
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
- LabelAlignment labelAlignment = LabelAlignment.center,
- TickPosition tickPosition = TickPosition.outside,
- MajorTickLines majorTickLines = const MajorTickLines(),
- MinorTickLines minorTickLines = const MinorTickLines(),
- TextStyle? labelStyle,
- AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
- int? desiredIntervals,
- MajorGridLines majorGridLines = const MajorGridLines(),
- MinorGridLines minorGridLines = const MinorGridLines(),
- int maximumLabels = 3,
- int minorTicksPerInterval = 0,
- bool isInversed = false,
- bool opposedPosition = false,
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
- bool enableAutoIntervalOnZooming = true,
- double initialZoomFactor = 1,
- double initialZoomPosition = 0,
- InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
- double? interval,
- dynamic crossesAt,
- String? associatedAxisName,
- bool placeLabelsNearAxisLine = true,
- List<
PlotBand> plotBands = const <PlotBand>[], - RangeController? rangeController,
- double? maximumLabelWidth,
- double? labelsExtent,
- int? autoScrollingDelta,
- AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- ChartLabelFormatterCallback? axisLabelFormatter,
Creating an argument constructor of ChartAxis class.
Implementation
const ChartAxis({
Key? key,
this.name,
this.plotOffset,
this.plotOffsetStart,
this.plotOffsetEnd,
this.isVisible = true,
this.anchorRangeToVisiblePoints = true,
this.title = const AxisTitle(),
this.axisLine = const AxisLine(),
this.rangePadding = ChartRangePadding.auto,
this.labelRotation = 0,
this.labelPosition = ChartDataLabelPosition.outside,
this.labelAlignment = LabelAlignment.center,
this.tickPosition = TickPosition.outside,
this.majorTickLines = const MajorTickLines(),
this.minorTickLines = const MinorTickLines(),
this.labelStyle,
this.labelIntersectAction = AxisLabelIntersectAction.hide,
this.desiredIntervals,
this.majorGridLines = const MajorGridLines(),
this.minorGridLines = const MinorGridLines(),
this.maximumLabels = 3,
this.minorTicksPerInterval = 0,
this.isInversed = false,
this.opposedPosition = false,
this.edgeLabelPlacement = EdgeLabelPlacement.none,
this.enableAutoIntervalOnZooming = true,
this.initialZoomFactor = 1,
this.initialZoomPosition = 0,
this.interactiveTooltip = const InteractiveTooltip(),
this.interval,
this.crossesAt,
this.associatedAxisName,
this.placeLabelsNearAxisLine = true,
this.plotBands = const <PlotBand>[],
this.rangeController,
this.maximumLabelWidth,
this.labelsExtent,
this.autoScrollingDelta,
this.autoScrollingMode = AutoScrollingMode.end,
this.borderWidth = 0.0,
this.borderColor,
this.axisBorderType = AxisBorderType.rectangle,
this.multiLevelLabelStyle = const MultiLevelLabelStyle(),
this.multiLevelLabelFormatter,
this.axisLabelFormatter,
}) : super(key: key);