UChartSeries class

One named line/bar series of Y values over the shared categories. UChartSeries(name: "Sales", values: [3, 5, 2, 8])

Constructors

UChartSeries({required List<double> values, String? name, Color? color, List<Color>? gradient, List<Color>? pointColors, bool? filled, bool dashed = false})
const

Properties

color → Color?
Main color (defaults to the theme).
final
dashed → bool
Draws the line dashed.
final
filled → bool?
Per-series fill override for line charts; falls back to the widget's value.
final
gradient → List<Color>?
Background gradient (overrides the color).
final
hashCode → int
The hash code for this object.
no setterinherited
name → String?
Name.
final
pointColors → List<Color>?
Optional per-point colors (e.g. a distinctly colored bar per category).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
values → List<double>
Y values, one per category.
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