ChartRenderBase class abstract

Shared structural base for themed chart renderers.

Every theme renders the identical skeleton: a container with an optional title and description followed by one row per data point (label, a track holding a proportional fill bar, and a value). Only the inline styles and the root CSS class differ per theme, so this base factors the skeleton and the proportional-width computation, leaving the style maps to the subclass.

This base lives in core and depends only on core props; it must never depend on a theme package.

Inheritance

Constructors

ChartRenderBase(ChartProps props, {Key? key})
const

Properties

cssClass → String
CSS class applied to the chart root element.
no setter
descriptionStyles → Map<String, String>
Inline styles for the description span.
no setter
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one component replaces another component in the tree.
finalinherited
pointLabelStyles → Map<String, String>
Inline styles for each point label span.
no setter
pointRowStyles → Map<String, String>
Inline styles for each point row.
no setter
pointValueStyles → Map<String, String>
Inline styles for each point value span.
no setter
props → ChartProps
final
rootStyles → Map<String, String>
Inline styles for the chart root element.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleStyles → Map<String, String>
Inline styles for the title span.
no setter
trackStyles → Map<String, String>
Inline styles for each point's track (the bar background).
no setter

Methods

build(BuildContext context) → Component
Describes the part of the user interface represented by this component.
override
createElement() → Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
fillStyles(String width) → Map<String, String>
Inline styles for a point's fill bar; width is the resolved CSS width.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) → bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited