AnimatedCircularChart class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AnimatedCircularChart
Constructors
-
AnimatedCircularChart({Key? key, required Size size, required List<
CircularStackEntry> ? initialChartData, CircularChartType chartType = CircularChartType.radial, Duration duration = _kDuration, bool percentageValues = false, double? holeRadius, double startAngle = _kStartAngle, String? holeLabel, TextStyle? labelStyle, SegmentEdgeStyle edgeStyle = SegmentEdgeStyle.flat}) -
const
Properties
- chartType → CircularChartType
-
The type of chart to be rendered.
Use CircularChartType.pie for a circle divided into slices for each entry.
Use CircularChartType.radial for one or more arcs with a hole in the center.
final
- duration → Duration
-
The duration of the chart animation when AnimatedCircularChartState.updateData
is called.
final
- edgeStyle → SegmentEdgeStyle
-
The type of segment edges to be drawn.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- holeLabel → String?
-
A label to show in the hole of a radial chart.
final
- holeRadius → double?
-
For CircularChartType.radial charts this defines the circle in the center
of the canvas, around which the chart is drawn. If not provided then it will
be automatically calculated to accommodate all the data.
final
-
initialChartData
→ List<
CircularStackEntry> ? -
The data used to build the chart displayed when the widget is first placed.
Each CircularStackEntry in the list defines an individual stack of data:
For a Pie chart that corresponds to individual slices in the chart.
For a Radial chart it corresponds to individual segments on the same arc.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- labelStyle → TextStyle?
-
The style used when rendering the holeLabel.
final
- percentageValues → bool
-
If true then the data values provided will determine what percentage of the circle
this segment occupies
i.e: a value of 100 is the full circle.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
The size of the bounding box this chart will be constrained to.
final
- startAngle → double
-
The chart gets drawn and animates clockwise from startAngle, defaulting to the
top/center point or -90.0. In terms of a clock face these would be:
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → AnimatedCircularChartState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
Static Methods
-
of(
BuildContext context, {bool nullOk = false}) → AnimatedCircularChartState? - The state from the closest instance of this class that encloses the given context.