CategoryAxis class
Renders the category axis.
Constructors
- CategoryAxis({String name, bool isVisible, AxisTitle title, AxisLine axisLine, bool arrangeByIndex, LabelPlacement labelPlacement, EdgeLabelPlacement edgeLabelPlacement, LabelPosition labelPosition, TickPosition tickPosition, int labelRotation, AxisLabelIntersectAction labelIntersectAction, bool isInversed, bool opposedPosition, int minorTicksPerInterval, int maximumLabels, MajorTickLines majorTickLines, MinorTickLines minorTickLines, MajorGridLines majorGridLines, MinorGridLines minorGridLines, ChartTextStyle labelStyle, double plotOffset, double zoomFactor, double zoomPosition, InteractiveTooltip crosshairTooltip, double minimum, double maximum, double interval, double visibleMinimum, double visibleMaximum })
Properties
- arrangeByIndex → bool
-
Plots the data points based on the index value. By default, data points will be
grouped and plotted based on the x-value. They can also be grouped by the data
point index value. [...]
final
- labelPlacement → LabelPlacement
-
Position of the category axis labels. The labels can be placed either
between the ticks or at the major ticks. [...]
final
- maximum → double
-
The maximum value of the axis. The axis will end at this value. [...]
final
- minimum → double
-
The minimum value of the axis. The axis will start from this value. [...]
final
- visibleMaximum → double
-
The maximum visible value of the axis. The axis is rendered to this value initially. [...]
final
- visibleMinimum → double
-
The minimum visible value of the axis. The axis is rendered from this value
initially. [...]
final
- axisLine → AxisLine
-
Customizes the appearance of the axis line. The axis line is visible by default. [...]
final, inherited
- crosshairTooltip → InteractiveTooltip
-
Customizes the crosshair tooltip. Crosshair tooltip displays the current axis
value based on the crosshair position at an axis. [...]
final, inherited
- 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, inherited
- edgeLabelPlacement → EdgeLabelPlacement
-
Position of the edge labels. The edge labels in an axis can be hidden or shifted
inside the axis bounds. [...]
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
- interval → double
-
Axis interval value. Using this, the axis labels can be displayed after
certain interval value. [...]
final, inherited
- 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, inherited
- 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, inherited
- 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, inherited
- labelPosition → LabelPosition
-
Position of the labels. Axis labels can be placed either inside or
outside the plot area. [...]
final, inherited
- labelRotation → int
-
Angle for axis labels. The axis labels can be rotated to any angle. [...]
final, inherited
- 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, inherited
- 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, inherited
- 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, inherited
- maximumLabels → int
-
The maximum number of labels to be displayed in an axis in 100 logical pixels. [...]
final, inherited
- 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, inherited
- 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, inherited
- minorTicksPerInterval → int
-
Interval of the minor ticks. [...]
final, inherited
- name → String
-
Name of an axis. A unique name further used for linking the series to this
appropriate axis. [...]
final, inherited
- opposedPosition → bool
-
Opposes the axis position. An axis can be placed at the opposite side of
its default position. [...]
final, inherited
- plotOffset → double
-
Padding for plot area. The axis is rendered in chart with padding. [...]
final, inherited
- 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, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tickPosition → TickPosition
-
Position of the tick lines. Tick lines can be placed either inside or
outside the plot area. [...]
final, inherited
- title → AxisTitle
-
Customizes the appearance of the axis title. [...]
final, inherited
- zoomFactor → double
-
Zoom factor of an axis. Scale the axis based on this value, and it ranges
from 0 to 1. [...]
final, inherited
- zoomPosition → double
-
Position of the zoomed axis. The value ranges from 0 to 1. [...]
final, inherited
Methods
-
applyRangePadding(
_VisibleRange range, num interval) → void -
Applies range padding
override
-
calculateInterval(
_VisibleRange range, Size availableSize) → num -
Finds the interval of an axis.
override
-
calculateRange(
) → void -
Finds the minimum and maximum ranges of an axis.
override
-
calculateVisibleRange(
Size availableSize) → void -
Calculates the visible range for an axis in chart.
override
-
generateVisibleLabels(
) → void -
Generates the visible axis labels.
override
-
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