NumericAxis constructor
const
NumericAxis({
- Key? key,
- String? name,
- bool isVisible = true,
- bool anchorRangeToVisiblePoints = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- ChartRangePadding rangePadding = ChartRangePadding.auto,
- AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
- int labelRotation = 0,
- String? labelFormat,
- NumberFormat? numberFormat,
- LabelAlignment labelAlignment = LabelAlignment.center,
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
- TickPosition tickPosition = TickPosition.outside,
- bool isInversed = false,
- bool opposedPosition = false,
- int minorTicksPerInterval = 0,
- int maximumLabels = 3,
- MajorTickLines majorTickLines = const MajorTickLines(),
- MinorTickLines minorTickLines = const MinorTickLines(),
- MajorGridLines majorGridLines = const MajorGridLines(),
- MinorGridLines minorGridLines = const MinorGridLines(),
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
- TextStyle? labelStyle,
- double plotOffset = 0,
- double initialZoomFactor = 1,
- double initialZoomPosition = 0,
- bool enableAutoIntervalOnZooming = true,
- InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
- double? minimum,
- double? maximum,
- double? interval,
- double? initialVisibleMinimum,
- double? initialVisibleMaximum,
- dynamic crossesAt,
- String? associatedAxisName,
- bool placeLabelsNearAxisLine = true,
- List<
PlotBand> plotBands = const <PlotBand>[], - int decimalPlaces = 3,
- int? desiredIntervals,
- RangeController? rangeController,
- double? maximumLabelWidth,
- double? labelsExtent,
- int? autoScrollingDelta,
- AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- List<
NumericMultiLevelLabel> ? multiLevelLabels, - MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- ChartLabelFormatterCallback? axisLabelFormatter,
- dynamic onRendererCreated()?,
Creating an argument constructor of NumericAxis class.
Implementation
const NumericAxis({
super.key,
super.name,
super.isVisible = true,
super.anchorRangeToVisiblePoints = true,
super.title,
super.axisLine,
super.rangePadding,
super.labelIntersectAction,
super.labelRotation,
this.labelFormat,
this.numberFormat,
super.labelAlignment,
super.labelPosition,
super.tickPosition,
super.isInversed,
super.opposedPosition,
super.minorTicksPerInterval,
super.maximumLabels,
super.majorTickLines,
super.minorTickLines,
super.majorGridLines,
super.minorGridLines,
super.edgeLabelPlacement,
super.labelStyle,
super.plotOffset,
super.initialZoomFactor,
super.initialZoomPosition,
super.enableAutoIntervalOnZooming,
super.interactiveTooltip,
this.minimum,
this.maximum,
super.interval,
this.initialVisibleMinimum,
this.initialVisibleMaximum,
super.crossesAt,
super.associatedAxisName,
super.placeLabelsNearAxisLine,
super.plotBands,
this.decimalPlaces = 3,
super.desiredIntervals,
super.rangeController,
super.maximumLabelWidth,
super.labelsExtent,
super.autoScrollingDelta,
super.autoScrollingMode,
super.borderWidth,
super.borderColor,
super.axisBorderType,
this.multiLevelLabels,
super.multiLevelLabelFormatter,
super.multiLevelLabelStyle,
super.axisLabelFormatter,
this.onRendererCreated,
}) : assert(
(initialVisibleMaximum == null && initialVisibleMinimum == null) ||
autoScrollingDelta == null,
'Both properties have the same behavior to display the visible data points, use any one of the properties');