AnimatedCircularChart class
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})
-
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