DateTimeAxis class

This class holds the properties of the DateTime axis.

The date-time axis uses a date-time scale and displays date-time values as axis labels in the specified format.

The range of the Date time can be customized by minimum and maximum properties, also change data label format by the dateFormat.

Provides the options for range padding, interval, date format for customizing the appearance.

Inheritance

Constructors

DateTimeAxis({String name, bool isVisible, AxisTitle title, AxisLine axisLine, ChartRangePadding rangePadding, AxisLabelIntersectAction labelIntersectAction, ChartDataLabelPosition labelPosition, TickPosition tickPosition, EdgeLabelPlacement edgeLabelPlacement, double zoomFactor, double zoomPosition, bool enableAutoIntervalOnZooming, int labelRotation, bool isInversed, bool opposedPosition, int minorTicksPerInterval, int maximumLabels, double plotOffset, MajorTickLines majorTickLines, MinorTickLines minorTickLines, MajorGridLines majorGridLines, MinorGridLines minorGridLines, TextStyle labelStyle, DateFormat dateFormat, DateTimeIntervalType intervalType, InteractiveTooltip interactiveTooltip, String labelFormat, DateTime minimum, DateTime maximum, LabelAlignment labelAlignment, double interval, DateTime visibleMinimum, DateTime visibleMaximum, dynamic crossesAt, String associatedAxisName, bool placeLabelsNearAxisLine, List<PlotBand> plotBands, RangeController rangeController, int desiredIntervals})
Creating an argument constructor of DateTimeAxis class.

Properties

anchorRangeToVisiblePoints bool
Determines the value axis range, based on the visible data points or based on the overall data points available in chart. [...]
final, inherited
associatedAxisName String
Axis line crossed on mentioned axis name, and applicable for plot band also. [...]
final, inherited
axisLine AxisLine
Customizes the appearance of the axis line. The axis line is visible by default. [...]
final, inherited
crossesAt → dynamic
Customize to place the axis crossing on another axis based on the value [...]
final, inherited
dateFormat DateFormat
Formats the date-time axis labels. The default data-time axis label can be formatted with various built-in date formats. [...]
final
desiredIntervals int
The number of intervals in an axis. [...]
final, inherited
edgeLabelPlacement EdgeLabelPlacement
Position of the edge labels. [...]
final, inherited
enableAutoIntervalOnZooming bool
Enables or disables the automatic interval while zooming. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
interactiveTooltip InteractiveTooltip
Customizes the crosshair and selection zooming tooltip. Tooltip displays the current axis value based on the crosshair position/selectionZoomRect position at an axis. [...]
final, inherited
interval double
Axis interval value. [...]
final, inherited
intervalType DateTimeIntervalType
Customizes the date-time axis intervals. Intervals can be set to days, hours, milliseconds, minutes, months, seconds, years, and auto. If it is set to auto, interval type will be decided based on the data. [...]
final
isInversed bool
Inverts the axis. [...]
final, inherited
isVisible bool
Toggles the visibility of the axis. [...]
final, inherited
labelAlignment LabelAlignment
Alignment of the labels. [...]
final, inherited
labelFormat String
Formats the date time-axis labels. The labels can be customized by adding desired text to prefix or suffix. [...]
final
labelIntersectAction AxisLabelIntersectAction
Axis labels intersecting action. [...]
final, inherited
labelPosition ChartDataLabelPosition
Position of the labels. [...]
final, inherited
labelRotation int
Angle for axis labels. The axis labels can be rotated to any angle. [...]
final, inherited
labelStyle TextStyle
Customizes the appearance of the axis labels. [...]
final, inherited
majorGridLines MajorGridLines
Customizes the appearance of the major grid lines. [...]
final, inherited
majorTickLines MajorTickLines
Customizes the appearance of the major tick lines. [...]
final, inherited
maximum DateTime
Maximum value of the axis. The axis will end at this date. [...]
final
maximumLabels int
The maximum number of labels to be displayed in an axis in 100 logical pixels. [...]
final, inherited
minimum DateTime
Minimum value of the axis. The axis will start from this date. [...]
final
minorGridLines MinorGridLines
Customizes the appearance of the minor grid lines. [...]
final, inherited
minorTickLines MinorTickLines
Customizes the appearance of the minor tick lines. [...]
final, inherited
minorTicksPerInterval int
Interval of the minor ticks. [...]
final, inherited
name String
Name of an axis. [...]
final, inherited
opposedPosition bool
Opposes the axis position. [...]
final, inherited
placeLabelsNearAxisLine bool
Consider to place the axis label respect to near axis line. [...]
final, inherited
plotBands List<PlotBand>
Render the plot band in axis [...]
final, inherited
plotOffset double
Padding for plot area. The axis is rendered in chart with padding. [...]
final, inherited
rangeController RangeController
Controller used to set the maximum and minimum values for the chart.By providing the range controller, the maximum and The minimum range of charts can be customized [...]
final, inherited
rangePadding ChartRangePadding
Padding for minimum and maximum values in an axis. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tickPosition TickPosition
Position of the tick lines. [...]
final, inherited
title AxisTitle
Customizes the appearance of the axis title. [...]
final, inherited
visibleMaximum DateTime
The maximum visible value of the axis. The axis will be rendered from this date initially. [...]
final
visibleMinimum DateTime
The minimum visible value of the axis. The axis will be rendered from this date initially. [...]
final
zoomFactor double
Zoom factor of an axis. [...]
final, inherited
zoomPosition double
Position of the zoomed axis. The value ranges from 0 to 1. [...]
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited