YAxisRendererHorizontalBarChart class

Draws a y axis of a horizontal bar chart, where the y axis runs horizontally: the left axis along the top edge and the right axis along the bottom edge, with vertical grid lines, a vertical zero line and vertical limit lines.

Inheritance

Constructors

YAxisRendererHorizontalBarChart(ViewPortHandler viewPortHandler, YAxis yAxis, Transformer? transformer)
Creates a renderer for yAxis; transformer converts axis values to pixels. Limit line labels are drawn left aligned.

Properties

axis → AxisBase
The axis this renderer draws.
finalinherited
computeAxisPoint1 → MPPointD
Reused for the value at the top edge of the content rectangle, so a draw pass allocates nothing.
finalinherited
computeAxisPoint2 → MPPointD
Reused for the value at the bottom edge of the content rectangle.
finalinherited
drawZeroLinePath → Path
Path reused for the zero line.
finalinherited
getTransformedPositionsBuffer ↔ Float32List
Buffer reused by getTransformedPositions; resized to twice the entry count of the axis.
getter/setter pairinherited
gridClippingRect → MutableRect
Widened horizontally instead of vertically, because the grid lines are vertical here.
no setteroverride
gridClippingRectBuffer → MutableRect
Backing rectangle of gridClippingRect.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
limitLineClippingRect → MutableRect
Clip rectangle for the limit line being drawn, the content rectangle widened by the line width.
finalinherited
limitLinePaint → ChartPaint
Paint for the limit lines and their labels; restyled per LimitLine while drawing.
finalinherited
paintAxisLabels → ChartPaint
Paint for the axis labels; typeface, text size (dp) and color are copied from the axis on every draw.
finalinherited
paintAxisLine → ChartPaint
Paint for the axis line; color and line width (dp) are copied from the axis on every draw.
finalinherited
paintGrid → ChartPaint
Paint for the grid lines; color, line width (dp) and dash effect are copied from the axis on every draw.
finalinherited
renderGridLinesPath → Path
Path reused for drawing grid lines.
finalinherited
renderLimitLinesBuffer → Float32List
Buffer for the pixel position of the limit line being drawn.
finalinherited
renderLimitLinesPath → Path
Path reused for drawing limit lines.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transformer → Transformer?
Converts axis values to pixels and back; null for the radar chart axes, which are placed by the chart instead.
finalinherited
viewPortHandler → ViewPortHandler
Holds the content rectangle and the current zoom and translation of the chart, in pixels.
finalinherited
yAxis → YAxis
The y axis this renderer draws.
finalinherited
zeroLineClippingRect → MutableRect
Clip rectangle for the zero line, the content rectangle widened by the zero line width.
finalinherited
zeroLinePaint → ChartPaint
Paint for the line at the value 0; color and width (dp) are copied from the axis when it is drawn.
finalinherited

Methods

computeAxis(double min, double max, bool inverted) → void
Takes the visible range from the left and right edge of the content rectangle, because the y axis runs horizontally here.
override
computeAxisValues(double min, double max) → void
Fills the axis with evenly spaced label values between min and max (axis values) and stores them in its entries, entryCount, centeredEntries and decimals. Honors the label count, granularity, forced label count, centered labels and minimumInterval. Leaves the axis without entries when the range is zero or infinite.
inherited
drawYLabels(Canvas c, double fixedPosition, Float32List positions, double offset) → void
Draws the labels at the vertical pixel position fixedPosition minus offset, one per entry along the horizontal direction.
override
drawZeroLine(Canvas c) → void
Draws a vertical line over the content height at the pixel position of the value 0.
override
getTransformedPositions() → Float32List
Fills the x values of the pairs instead of the y values.
override
linePath(Path p, int i, Float32List positions) → Path
Builds a vertical grid line at the pixel x of the entry over the content height.
override
minimumInterval(double range) → double
Smallest interval in axis values the labels may use, so that neighbouring labels do not overlap. 0, the default, places no limit.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderAxisLabels(Canvas c) → void
Draws the labels centered above the content rectangle for the left axis and below it for the right axis.
override
renderAxisLine(Canvas c) → void
Draws the axis line along the top edge for the left axis and along the bottom edge for the right axis.
override
renderGridLines(Canvas c) → void
Draws one horizontal grid line per axis entry, clipped to gridClippingRect, and then the zero line when the axis enables it.
inherited
renderLimitLines(Canvas c) → void
Draws each enabled limit line as a vertical line at the pixel x of its limit value and, while the line is inside the content rectangle, its label at the top or bottom of the content rectangle, moved sideways where needed so it stays inside the content rectangle.
override
toString() → String
A string representation of this object.
inherited

Operators

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