DateTimeCategoryAxis constructor
const
DateTimeCategoryAxis({
- Key? key,
- String? name,
- bool isVisible = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- ChartRangePadding rangePadding = ChartRangePadding.auto,
- 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(),
- DateTime? minimum,
- DateTime? maximum,
- double? interval,
- DateTime? initialVisibleMinimum,
- DateTime? initialVisibleMaximum,
- dynamic crossesAt,
- String? associatedAxisName,
- bool placeLabelsNearAxisLine = true,
- List<
PlotBand> plotBands = const <PlotBand>[], - int? desiredIntervals,
- RangeController? rangeController,
- double? maximumLabelWidth,
- double? labelsExtent,
- LabelPlacement labelPlacement = LabelPlacement.betweenTicks,
- DateFormat? dateFormat,
- DateTimeIntervalType intervalType = DateTimeIntervalType.auto,
- DateTimeIntervalType autoScrollingDeltaType = DateTimeIntervalType.auto,
- int? autoScrollingDelta,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- List<
DateTimeCategoricalMultiLevelLabel> ? multiLevelLabels, - AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- ChartLabelFormatterCallback? axisLabelFormatter,
- dynamic onRendererCreated()?,
Creating an argument constructor of DateTimeCategoryAxis class.
Implementation
const DateTimeCategoryAxis({
super.key,
super.name,
super.isVisible = true,
super.title,
super.axisLine,
super.rangePadding,
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,
this.labelPlacement = LabelPlacement.betweenTicks,
this.dateFormat,
this.intervalType = DateTimeIntervalType.auto,
this.autoScrollingDeltaType = DateTimeIntervalType.auto,
super.autoScrollingDelta,
super.borderWidth,
super.borderColor,
super.axisBorderType,
super.multiLevelLabelStyle,
super.multiLevelLabelFormatter,
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');