RadialBarSeries class
Bars bent around the centre of a polar chart: a gauge, a progress ring, or one ring per row of a ChartData.
PolarChart(
angle: const LinearScale(range: FixedRange(0, 100)),
innerRadius: 0.8,
children: [RadialBarSeries(data: ChartData.fromValues([72]), track: true)],
)
The value of a row is on the angle scale: its bar runs from baseline, or from the value in baseColumn, around the circle to the value. A value beyond the scale stops at its end. The x of a row is on the radius scale: the ring is centred there and widthFactor × step wide. A single row on the default radius scale fills the space between the inner and the outer radius of the chart.
For rings in different colours with a legend, as in an activity display, give each ring a series of its own: one row each, at x = 0, 1, 2 and so on, with the same step.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- RadialBarSeries
Constructors
- RadialBarSeries({Key? key, required ChartData data, int column = 0, int? baseColumn, double baseline = 0, Object? id, String? label, Color? color, ChartBarColor? colorOf, double widthFactor = 0.7, double? step, StrokeCap cap = StrokeCap.butt, bool track = false, Color? trackColor, bool visible = true, bool isolate = true})
-
Creates a radial bar series.
const
Properties
- baseColumn → int?
-
The value column holding the start of each bar; null uses baseline.
final
- baseline → double
-
The value bars start from when baseColumn is null.
final
- cap → StrokeCap
-
The shape of the ends of a bar:
StrokeCap.buttcuts them straight,StrokeCap.roundrounds them. The round end stays within the value: it does not reach beyond it.final - color → Color?
-
Bar colour. Defaults to the colour the palette of the chart theme has
for the place of the series in the chart.
final
- colorOf → ChartBarColor?
-
Per-bar colour; return null to use color.
final
- column → int
-
The value column holding the end of each bar.
final
- data → ChartData
-
The data to plot: one ring per row.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → Object?
-
Identifier of the series.
final
- isolate → bool
-
Whether the series paints into its own compositing layer.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
Name of the series, for legends and tooltips.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- step → double?
-
Distance between two rings in data units. Defaults to the distance
between the first two rows, or to 1.
final
- track → bool
-
Whether each ring is drawn in full behind its bar, in trackColor.
final
- trackColor → Color?
-
Colour of the track. Defaults to the grid colour of the chart theme.
final
- visible → bool
-
Whether the series is shown; a hidden series stays listed for legends.
final
- widthFactor → double
-
Thickness of a ring as a fraction of step. Defaults to
0.7.final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited