CategoryAxis constructor
      const
      CategoryAxis({ 
    
- Key? key,
- String? name,
- bool isVisible = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- bool arrangeByIndex = false,
- ChartRangePadding rangePadding = ChartRangePadding.auto,
- LabelPlacement labelPlacement = LabelPlacement.betweenTicks,
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
- TickPosition tickPosition = TickPosition.outside,
- int labelRotation = 0,
- AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
- LabelAlignment labelAlignment = LabelAlignment.center,
- bool isInversed = false,
- bool opposedPosition = false,
- int maximumLabels = 3,
- MajorTickLines majorTickLines = const MajorTickLines(),
- MajorGridLines majorGridLines = const MajorGridLines(),
- TextStyle? labelStyle,
- double? plotOffset,
- double? plotOffsetStart,
- double? plotOffsetEnd,
- double initialZoomFactor = 1,
- double initialZoomPosition = 0,
- 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? desiredIntervals,
- RangeController? rangeController,
- double? maximumLabelWidth,
- double? labelsExtent,
- int? autoScrollingDelta,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- List<CategoricalMultiLevelLabel> ? multiLevelLabels,
- AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- ChartLabelFormatterCallback? axisLabelFormatter,
- dynamic onRendererCreated()?,
Creating an argument constructor of CategoryAxis class.
Implementation
const CategoryAxis({
  super.key,
  super.name,
  super.isVisible,
  super.title,
  super.axisLine,
  this.arrangeByIndex = false,
  super.rangePadding,
  this.labelPlacement = LabelPlacement.betweenTicks,
  super.edgeLabelPlacement,
  super.labelPosition,
  super.tickPosition,
  super.labelRotation,
  super.labelIntersectAction,
  super.labelAlignment,
  super.isInversed,
  super.opposedPosition,
  super.maximumLabels,
  super.majorTickLines,
  super.majorGridLines,
  super.labelStyle,
  super.plotOffset,
  super.plotOffsetStart,
  super.plotOffsetEnd,
  super.initialZoomFactor,
  super.initialZoomPosition,
  super.interactiveTooltip,
  this.minimum,
  this.maximum,
  super.interval,
  this.initialVisibleMinimum,
  this.initialVisibleMaximum,
  super.crossesAt,
  super.associatedAxisName,
  super.placeLabelsNearAxisLine,
  super.plotBands,
  super.desiredIntervals,
  super.rangeController,
  super.maximumLabelWidth,
  super.labelsExtent,
  super.autoScrollingDelta,
  super.borderWidth,
  super.borderColor,
  super.axisBorderType,
  super.multiLevelLabelFormatter,
  super.multiLevelLabelStyle,
  this.multiLevelLabels,
  super.autoScrollingMode,
  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',
     );