ChartAxisRenderer class abstract

Creates an axis renderer for chart axis.

Implementers

Constructors

ChartAxisRenderer()
Creating an argument constructor of ChartAxisRenderer class.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyRangePadding(VisibleRange range, num interval) → void
to apply the range padding for the axis
calculateInterval(VisibleRange range, Size availableSize) num?
returns the calculated interval for axis
calculateRange(ChartAxisRenderer axisRenderer) → void
To calculate the range points
calculateVisibleRange(Size availableSize) → void
calculates the visible range of the axis
dispose() → void
To dispose the objects.
drawHorizontalAxesLabels(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart, [String? renderType, double? animationFactor, ChartAxisRenderer? oldAxisRenderer, bool? needAnimate]) → void
To draw the axis labels of horizontal axes
drawHorizontalAxesLine(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart) → void
To draw the horizontal axis line
drawHorizontalAxesMajorGridLines(Canvas canvas, Offset point, ChartAxisRenderer axisRenderer, MajorGridLines grids, int index, SfCartesianChart chart) → void
To draw the major grid lines of horizontal axes
drawHorizontalAxesMinorLines(Canvas canvas, ChartAxisRenderer axisRenderer, double tempInterval, Rect rect, num nextValue, int index, SfCartesianChart chart, [String? renderType]) → void
To draw the minor grid lines of horizontal axes
drawHorizontalAxesTickLines(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart, [String? renderType, double? animationFactor, ChartAxisRenderer? oldAxisRenderer, bool? needAnimate]) → void
To draw the horizontal axes tick lines
drawHorizontalAxesTitle(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart) → void
To draw the axis title of horizontal axes
drawVerticalAxesLabels(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart, [String? renderType, double? animationFactor, ChartAxisRenderer? oldAxisRenderer, bool? needAnimate]) → void
To draw the axis labels of vertical axes
drawVerticalAxesLine(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart) → void
To draw the vertical axis line
drawVerticalAxesMajorGridLines(Canvas canvas, Offset point, ChartAxisRenderer axisRenderer, MajorGridLines grids, int index, SfCartesianChart chart) → void
To draw the major grid lines of vertical axes
drawVerticalAxesMinorTickLines(Canvas canvas, ChartAxisRenderer axisRenderer, num tempInterval, Rect rect, int index, SfCartesianChart chart, [String? renderType]) → void
To draw the minor grid lines of vertical axes
drawVerticalAxesTickLines(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart, [String? renderType, double? animationFactor, ChartAxisRenderer? oldAxisRenderer, bool? needAnimate]) → void
To draw tick lines of vertical axes
drawVerticalAxesTitle(Canvas canvas, ChartAxisRenderer axisRenderer, SfCartesianChart chart) → void
To draw the axis title of vertical axes
generateVisibleLabels() → void
this method generates the visible labels for the specific axis
getAxisLabel(ChartAxis axis, String text, int labelIndex) String
To get axis label text
getAxisLabelAngle(ChartAxisRenderer axisRenderer, String text, int labelIndex) int
It returns the axis label angle
getAxisLabelStyle(ChartAxis axis, String text, int labelIndex) TextStyle
To get axis label style
getAxisLineColor(ChartAxis axis) Color?
To get axis line color
getAxisLineWidth(ChartAxis axis) double
To get the axis line width
getAxisMajorGridColor(ChartAxis axis, int majorGridIndex) Color?
To get major grid color
getAxisMajorGridWidth(ChartAxis axis, int majorGridIndex) double
To get major grid width
getAxisMajorTickColor(ChartAxis axis, int majorTickIndex) Color?
To get axis line width
getAxisMajorTickWidth(ChartAxis axis, int majorTickIndex) double
To get major tick width
getAxisMinorGridColor(ChartAxis axis, int majorGridIndex, int minorGridIndex) Color?
To get minor grid color
getAxisMinorGridWidth(ChartAxis axis, int majorGridIndex, int minorGridIndex) double
To get minor grid width
getAxisMinorTickColor(ChartAxis axis, int majorTickIndex, int minorTickIndex) Color?
To get major tick color
getAxisMinorTickWidth(ChartAxis axis, int majorTickIndex, int minorTickIndex) double
To get minor tick width
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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