ChartAxis class

Customizes the axis in the cartesian chart.

Implementers

Constructors

ChartAxis({String name, double plotOffset, bool isVisible, AxisTitle title, AxisLine axisLine, ChartRangePadding rangePadding, int labelRotation, LabelPosition labelPosition, TickPosition tickPosition, MajorTickLines majorTickLines, MinorTickLines minorTickLines, ChartTextStyle labelStyle, AxisLabelIntersectAction labelIntersectAction, int desiredIntervals, MajorGridLines majorGridLines, MinorGridLines minorGridLines, int maximumLabels, int minorTicksPerInterval, bool isInversed, bool opposedPosition, EdgeLabelPlacement edgeLabelPlacement, bool enableAutoIntervalOnZooming, double zoomFactor, double zoomPosition, InteractiveTooltip crosshairTooltip, double interval })

Properties

axisLine AxisLine
Customizes the appearance of the axis line. The axis line is visible by default. [...]
final
crosshairTooltip InteractiveTooltip
Customizes the crosshair tooltip. Crosshair tooltip displays the current axis value based on the crosshair position at an axis. [...]
final
desiredIntervals int
The number of intervals in an axis. By default, the number of intervals is calculated based on the minimum and maximum values and the axis width and height. [...]
final
edgeLabelPlacement EdgeLabelPlacement
Position of the edge labels. The edge labels in an axis can be hidden or shifted inside the axis bounds. [...]
final
enableAutoIntervalOnZooming bool
Enables or disables the automatic interval while zooming. [...]
final
interval double
Axis interval value. Using this, the axis labels can be displayed after certain interval value. [...]
final
isInversed bool
Inverts the axis. Axis is rendered from the minimum value to maximum value by default, and it can be inverted to render the axis from the maximum value to minimum value. [...]
final
isVisible bool
Toggles the visibility of the axis. Visibility of all the elements in the axis such as title, labels, major tick lines, and major grid lines will be toggled together. [...]
final
labelIntersectAction AxisLabelIntersectAction
Axis labels intersecting action. Various actions such as hide, trim, wrap, rotate 90 degree, rotate 45 degree, and placing the labels in multiple rows can be handled when the axis labels collide with each other. [...]
final
labelPosition LabelPosition
Position of the labels. Axis labels can be placed either inside or outside the plot area. [...]
final
labelRotation int
Angle for axis labels. The axis labels can be rotated to any angle. [...]
final
labelStyle ChartTextStyle
Customizes the appearance of the axis labels. Labels are the axis values placed at each interval. Axis labels are visible by default. [...]
final
majorGridLines MajorGridLines
Customizes the appearance of the major grid lines. Major grids are the lines drawn on the plot area at all the major intervals in an axis. Major grid lines are visible by default. [...]
final
majorTickLines MajorTickLines
Customizes the appearance of the major tick lines.Major ticks are small lines used to indicate the intervals in an axis. Major tick lines are visible by default. [...]
final
maximumLabels int
The maximum number of labels to be displayed in an axis in 100 logical pixels. [...]
final
minorGridLines MinorGridLines
Customizes the appearance of the minor grid lines. Minor grids are the lines drawn on the plot area at all the minor intervals between the major intervals. [...]
final
minorTickLines MinorTickLines
Customizes the appearance of the minor tick lines. Minor ticks are small lines used to indicate the minor intervals between a major interval [...]
final
minorTicksPerInterval int
Interval of the minor ticks. [...]
final
name String
Name of an axis. A unique name further used for linking the series to this appropriate axis. [...]
final
opposedPosition bool
Opposes the axis position. An axis can be placed at the opposite side of its default position. [...]
final
plotOffset double
Padding for plot area. The axis is rendered in chart with padding. [...]
final
rangePadding ChartRangePadding
Padding for minimum and maximum values in an axis. Various types of range padding such as round, none, normal, and additional can be applied. [...]
final
tickPosition TickPosition
Position of the tick lines. Tick lines can be placed either inside or outside the plot area. [...]
final
title AxisTitle
Customizes the appearance of the axis title. [...]
final
zoomFactor double
Zoom factor of an axis. Scale the axis based on this value, and it ranges from 0 to 1. [...]
final
zoomPosition double
Position of the zoomed axis. The value ranges from 0 to 1. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

applyRangePadding(_VisibleRange range, num interval) → void
calculateInterval(_VisibleRange range, Size availableSize) num
calculateRange() → void
calculateVisibleRange(Size availableSize) → void
generateVisibleLabels() → void
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 ==(dynamic other) bool
The equality operator. [...]
inherited