ChartData<C, X, Y> class
abstract
Abstract Chart Data.
- Implementers
Constructors
Properties
-
categories
→ List<
C> -
The categories (usually X axis) of the Chart.
no setter
-
categoriesAsStrings
→ List<
String> -
Same as categories, but as String.
no setter
-
colors
↔ Map<
C, String> ? -
Colors of each category.
getter/setter pair
-
colorsDarker
→ Map<
C, String> -
Darker colors of each category.
no setter
-
colorsLighter
→ Map<
C, String> -
Lighter colors of each category.
no setter
-
disabledColors
↔ Map<
C, String> ? -
Colors of each category when disabled.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns
true
if this is empty.no setter - isNotEmpty → bool
-
![isEmpty]
no setter
- lastRenderedChart ↔ RenderedChart?
-
Last instance of RenderedChart for this ChartData.
Only populated if populateLastRenderedChart is
true
.getter/setter pair - options → ChartOptions
-
The options to render this data in the chart.
no setter
- populateLastRenderedChart ↔ bool
-
If
true
will populate lastRenderedChartgetter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title ↔ String?
-
The title of the Chart.
getter/setter pair
-
xAxisAllValues
→ Iterable<
X> -
Returns all values of axis X.
no setter
-
xAxisScale
→ Scale<
X> ? -
Returns the
no setter
- xTitle ↔ String?
-
Title of X axis. If null it won't be rendered.
getter/setter pair
-
yAxisAllValues
→ Iterable<
Y> -
Returns all values of axis Y.
no setter
-
yAxisScale
→ Scale<
Y> ? -
Returns the
no setter
- yTitle ↔ String?
-
Title of Y axis. If null it won't be rendered.
getter/setter pair
Methods
-
ensureColors(
ColorGenerator colorGenerator) → void -
Ensure that the Colors Map is set, using a
colorGenerator
. -
getXAxisValue(
int index) → X -
Returns a
X
value atindex
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setColors(
ColorGenerator colorGenerator) → void -
Set the Colors Map using a
colorGenerator
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
from(
Map map) → ChartData? -
isListOfPairs(
Iterable list) → bool -
Returns
true
iflist
is a List of paris. -
isListOfTimedPairs(
Iterable list) → bool -
Returns
true
iflist
is a List of time pairs (X: DateTime, Y: value). -
isListOfValidValues(
Iterable list) → bool -
Returns
true
iflist
elements are valid values. -
isTimeValue(
dynamic value) → bool -
Returns
true
ifvalue
is a UNIX epoch int or a DateTime. -
isValidValue(
dynamic value) → bool -
Returns
true
ifvalue
is a valid value for the charts. -
isValueInUnixEpochRange(
int value, [bool? inMilliseconds]) → bool -
Returns
true
ifvalue
is a UNIX epoch integer. -
matchesChartData(
Map map) → bool -
Returns
true
ifmap
is valid for a ChartData implementation. -
matchesSeries(
Map map) → bool -
Returns
true
ifmap
is valid for ChartSeries. -
matchesSeriesPair(
Map map) → bool -
Returns
true
ifmap
is valid for ChartSeriesPair. -
matchesSet(
Map map) → bool -
Returns
true
ifmap
is valid for ChartSet. -
matchesTimeSeries(
Map map) → bool -
Returns
true
ifmap
is valid for ChartTimeSeries.