ChartData<T> class

axisMin - Min value that has to be displayed on the chart, if data contains value that is lower than axisMin in that case axisMin is ignored and actual min value is shown.

axisMax - Same as axisMin but for max value.

Constructors

ChartData(List<List<ChartItem<T?>>> _items, {DataStrategy dataStrategy = const DefaultDataStrategy(stackMultipleValues: true), double? axisMax, double? valueAxisMaxOver, double? axisMin})
Takes list to make chart, this is used for multiple list charts
ChartData.fromList(List<ChartItem<T>> items, {double? axisMax, double? axisMin, double? valueAxisMaxOver})
Make chart data from list of ChartItem's
factory
ChartData.randomBarValues({int items = 10, double maxValue = 20, double minValue = 0, double? valueAxisMaxOver})
Generate a list of random ChartItem items for the chart
factory

Properties

axisMax double?
Max value that chart should show, in case that axisMax is bellow the value of value passed with data in the chart this will be ignored.
final
axisMin double?
Min value of the chart, anything below that will not be shown and chart x axis will start from axisMin (default: 0)
final
dataStrategy DataStrategy
Data strategy to use on items Default: DefaultDataStrategy
final
hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if there is no items in the ChartData
no setter
isNotEmpty bool
Returns true if there is at least one item in the ChartData
no setter
items List<List<ChartItem<T?>>>
Return list as formatted data defined by DataStrategy
no setter
listSize int
Get max list size
no setter
maxValue double
Max value to show on the chart, in case data has point higher then specified maxValue then maxValue is ignored
latefinal
minValue double
Min value that chart should show. In case chart shouldn't start from 0 use this to specify new min starting point If data has value that goes below minValue then minValue is ignored
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackSize int
Get number of data lists in the chart
no setter
valueAxisMaxOver double?
Max value that chart should show, in case that axisMax is bellow the value of value passed with data in the chart this will be ignored.
final

Methods

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

Static Methods

lerp<T>(ChartData<T?> a, ChartData<T?> b, double t) ChartData<T?>
Linearly interpolate between two ChartData, a and b, by an extrapolation factor t.