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 = 0,
  26. double initialZoomFactor = 1,
  27. double initialZoomPosition = 0,
  28. bool enableAutoIntervalOnZooming = true,
  29. InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
  30. double? minimum,
  31. double? maximum,
  32. double? interval,
  33. double? initialVisibleMinimum,
  34. double? initialVisibleMaximum,
  35. dynamic crossesAt,
  36. String? associatedAxisName,
  37. bool placeLabelsNearAxisLine = true,
  38. List<PlotBand> plotBands = const <PlotBand>[],
  39. int decimalPlaces = 3,
  40. int? desiredIntervals,
  41. RangeController? rangeController,
  42. double? maximumLabelWidth,
  43. double? labelsExtent,
  44. int? autoScrollingDelta,
  45. AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
  46. double borderWidth = 0.0,
  47. Color? borderColor,
  48. AxisBorderType axisBorderType = AxisBorderType.rectangle,
  49. List<NumericMultiLevelLabel>? multiLevelLabels,
  50. MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
  51. MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
  52. ChartLabelFormatterCallback? axisLabelFormatter,
  53. 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.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');