BarGeometryPainter<T> class

Paint bar value item.

Bar value: ┌───────────┐ --> Max value in set or from ChartData.maxValue │ │ │ ┌───┐ │ --> ChartItem value │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └───┴───┴───┘ --> 0 or ChartData.minValue

Candle value: ┌───────────┐ --> Max value in set or ChartData.maxValue │ │ │ ┌───┐ │ --> ChartItem max value │ │ │ │ │ │ │ │ │ └───┘ │ --> ChartItem min value │ │ └───────────┘ --> 0 or ChartData.minValue

Inheritance

Constructors

BarGeometryPainter(ChartItem<T> item, ChartData<T?> data, ItemOptions itemOptions, BarItem drawDataItem)
Constructor for Bar painter

Properties

data ChartData<T?>
Current data of the chart
finalinherited
drawDataItem BarItem
final
hashCode int
The hash code for this object.
no setterinherited
item ChartItem<T?>
Current item being painted
finalinherited
itemOptions ItemOptions
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

draw(Canvas canvas, Size size, Paint paint) → void
Draw ChartItem on the canvas. Canvas with item size is passed, item's padding and margin need to be calculated This is to allow more flexibility for more custom items if needed
override
itemWidth(Size size) double
Calculate item width based on current Size and ChartState
inherited
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