Series<D, T> class
Represents series of data with specified color.
The data is the map where the key is domain value of type D (e.g. names,
dates, ranges, etc.), and value is measure of type T.
The series must provide the measureAccessor which is used to convert data measure to double value which is used to build the measure scale and show values on the measure axis.
Also the Series can provide labelAccessor if labels are needed to be shown on the diagram. It can return null value which is indicates that the label for a specified value should not be displayed.
Constructors
-
Series({required Map<
D, T> data, required ColorAccessor<D, T> colorAccessor, required MeasureAccessor<T> measureAccessor, LabelAccessor<D, T> ? labelAccessor}) -
const
Properties
-
colorAccessor
→ ColorAccessor<
D, T> -
The functor defines the color of the piece of series.
final
-
data
→ Map<
D, T> -
The data to present on the diagram.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
labelAccessor
→ LabelAccessor<
D, T> ? -
The functor defines the label on the piece of series.
final
-
measureAccessor
→ MeasureAccessor<
T> -
The functor defines numeric representation of the piece of series.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{Map< D, T> ? data, ColorAccessor<D, T> ? colorAccessor, MeasureAccessor<T> ? measureAccessor, Optional<LabelAccessor< ? labelAccessor}) → Series<D, T> >D, T> -
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