DateTimeAxis constructor
const
DateTimeAxis({
- Key? key,
- String? name,
- bool isVisible = true,
- AxisTitle title = const AxisTitle(),
- AxisLine axisLine = const AxisLine(),
- ChartRangePadding rangePadding = ChartRangePadding.auto,
- AxisLabelIntersectAction labelIntersectAction = AxisLabelIntersectAction.hide,
- ChartDataLabelPosition labelPosition = ChartDataLabelPosition.outside,
- TickPosition tickPosition = TickPosition.outside,
- EdgeLabelPlacement edgeLabelPlacement = EdgeLabelPlacement.none,
- double initialZoomFactor = 1,
- double initialZoomPosition = 0,
- bool enableAutoIntervalOnZooming = true,
- int labelRotation = 0,
- bool isInversed = false,
- bool opposedPosition = false,
- int minorTicksPerInterval = 0,
- int maximumLabels = 3,
- double plotOffset = 0,
- MajorTickLines majorTickLines = const MajorTickLines(),
- MinorTickLines minorTickLines = const MinorTickLines(),
- MajorGridLines majorGridLines = const MajorGridLines(),
- MinorGridLines minorGridLines = const MinorGridLines(),
- TextStyle? labelStyle,
- DateFormat? dateFormat,
- DateTimeIntervalType intervalType = DateTimeIntervalType.auto,
- InteractiveTooltip interactiveTooltip = const InteractiveTooltip(),
- String? labelFormat,
- DateTime? minimum,
- DateTime? maximum,
- LabelAlignment labelAlignment = LabelAlignment.center,
- double? interval,
- DateTime? initialVisibleMinimum,
- DateTime? initialVisibleMaximum,
- dynamic crossesAt,
- String? associatedAxisName,
- bool placeLabelsNearAxisLine = true,
- List<
PlotBand> plotBands = const <PlotBand>[], - RangeController? rangeController,
- int? desiredIntervals,
- double? maximumLabelWidth,
- double? labelsExtent,
- DateTimeIntervalType autoScrollingDeltaType = DateTimeIntervalType.auto,
- int? autoScrollingDelta,
- double borderWidth = 0.0,
- Color? borderColor,
- AxisBorderType axisBorderType = AxisBorderType.rectangle,
- MultiLevelLabelStyle multiLevelLabelStyle = const MultiLevelLabelStyle(),
- MultiLevelLabelFormatterCallback? multiLevelLabelFormatter,
- List<
DateTimeMultiLevelLabel> ? multiLevelLabels, - AutoScrollingMode autoScrollingMode = AutoScrollingMode.end,
- ChartLabelFormatterCallback? axisLabelFormatter,
- dynamic onRendererCreated()?,
Creating an argument constructor of DateTimeAxis class.
Implementation
const DateTimeAxis({
super.key,
super.name,
super.isVisible = true,
super.title,
super.axisLine,
super.rangePadding,
super.labelIntersectAction,
super.labelPosition,
super.tickPosition,
super.edgeLabelPlacement,
super.initialZoomFactor,
super.initialZoomPosition,
super.enableAutoIntervalOnZooming,
super.labelRotation,
super.isInversed,
super.opposedPosition,
super.minorTicksPerInterval,
super.maximumLabels,
super.plotOffset,
super.majorTickLines,
super.minorTickLines,
super.majorGridLines,
super.minorGridLines,
super.labelStyle,
this.dateFormat,
this.intervalType = DateTimeIntervalType.auto,
super.interactiveTooltip,
this.labelFormat,
this.minimum,
this.maximum,
super.labelAlignment,
super.interval,
this.initialVisibleMinimum,
this.initialVisibleMaximum,
super.crossesAt,
super.associatedAxisName,
super.placeLabelsNearAxisLine,
super.plotBands,
super.rangeController,
super.desiredIntervals,
super.maximumLabelWidth,
super.labelsExtent,
this.autoScrollingDeltaType = DateTimeIntervalType.auto,
super.autoScrollingDelta,
super.borderWidth,
super.borderColor,
super.axisBorderType,
super.multiLevelLabelStyle,
super.multiLevelLabelFormatter,
this.multiLevelLabels,
super.autoScrollingMode,
super.axisLabelFormatter,
this.onRendererCreated,
});