UChartStyle class

Shared look of every chart; null fields follow the theme. UChartStyle(showLegend: true, valueFormatter: (v) => v.toInt().toString())

Constructors

UChartStyle({List<Color>? palette, Color? backgroundColor, Color? gridColor, Color? axisColor, Color? labelColor, double labelFontSize = 11, bool showGrid = true, bool showAxis = true, bool showLabels = true, bool showLegend = true, bool showValues = false, bool animate = true, Duration animationDuration = const Duration(milliseconds: 900), Curve animationCurve = Curves.easeOutCubic, EdgeInsets padding = const EdgeInsets.all(12), int gridDivisions = 5, double cornerRadius = 6, String valueFormatter(double value)?})
const

Properties

animate → bool
Animates changes.
final
animationCurve → Curve
Entry animation curve.
final
animationDuration → Duration
Length of the animation.
final
axisColor → Color?
Axis line color.
final
backgroundColor → Color?
Background color.
final
cornerRadius → double
Bar corner radius.
final
gridColor → Color?
Grid line color.
final
gridDivisions → int
Number of horizontal grid lines.
final
hashCode → int
The hash code for this object.
no setterinherited
labelColor → Color?
Axis label color.
final
labelFontSize → double
Axis label size.
final
padding → EdgeInsets
Space inside, around the content.
final
palette → List<Color>?
Series/slice colors (a palette from the theme when null).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showAxis → bool
Draws the axes.
final
showGrid → bool
Draws grid lines.
final
showLabels → bool
Draws axis labels.
final
showLegend → bool
Shows a legend.
final
showValues → bool
Writes values on bars/points.
final
valueFormatter → String Function(double value)?
Turns a number into label text, e.g. money.
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