NumericAxis constructor

const NumericAxis({
  1. Key? key,
  2. String? name,
  3. bool isVisible = true,
  4. bool anchorRangeToVisiblePoints = true,
  5. AxisTitle title = const AxisTitle(),
  6. AxisLine axisLine = const AxisLine(),
  7. ChartRangePadding rangePadding = ChartRangePadding.auto,
  8. AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
  9. int labelRotation = 0,
  10. String? labelFormat,
  11. NumberFormat? numberFormat,
  12. LabelAlignment labelAlignment = LabelAlignment.center,
  13. ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
  14. TickPosition tickPosition = TickPosition.outside,
  15. bool isInversed = false,
  16. bool opposedPosition = false,
  17. int minorTicksPerInterval = 0,
  18. int maximumLabels = 3,
  19. MajorTickLines majorTickLines = const MajorTickLines(),
  20. MinorTickLines minorTickLines = const MinorTickLines(),
  21. MajorGridLines majorGridLines = const MajorGridLines(),
  22. MinorGridLines minorGridLines = const MinorGridLines(),
  23. EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
  24. TextStyle? labelStyle,
  25. double? plotOffset,
  26. double? plotOffsetStart,
  27. double? plotOffsetEnd,
  28. double initialZoomFactor = 1,
  29. double initialZoomPosition = 0,
  30. bool enableAutoIntervalOnZooming = true,
  31. InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
  32. double? minimum,
  33. double? maximum,
  34. double? interval,
  35. double? initialVisibleMinimum,
  36. double? initialVisibleMaximum,
  37. dynamic crossesAt,
  38. String? associatedAxisName,
  39. bool placeLabelsNearAxisLine = true,
  40. List<PlotBand> plotBands = const <PlotBand>[],
  41. int decimalPlaces = 3,
  42. int? desiredIntervals,
  43. RangeController? rangeController,
  44. double? maximumLabelWidth,
  45. double? labelsExtent,
  46. int? autoScrollingDelta,
  47. AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
  48. double borderWidth = 0.0,
  49. Color? borderColor,
  50. AxisBorderType axisBorderType = AxisBorderType.rectangle,
  51. List<NumericMultiLevelLabel>? multiLevelLabels,
  52. MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
  53. MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
  54. ChartLabelFormatterCallback? axisLabelFormatter,
  55. dynamic onRendererCreated(
    1. NumericAxisController
    )?,
})

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.plotOffsetStart,
  super.plotOffsetEnd,
  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');