PieChartData class

PieChart needs this class to render itself.

It holds data needed to draw a pie chart, including pie sections, colors, ...

Inheritance

Constructors

PieChartData({List<PieChartSectionData>? sections, double? centerSpaceRadius, Color? centerSpaceColor, double? sectionsSpace, double? startDegreeOffset, PieTouchData? pieTouchData, FlBorderData? borderData})
PieChart draws some sections in a circle, and applies free space with radius centerSpaceRadius, and color centerSpaceColor in the center of the circle, if you don't want it, set centerSpaceRadius to zero.

Properties

borderData FlBorderData
Holds data to drawing border around the chart.
getter/setter pairinherited
centerSpaceColor Color
Color of free space in center of the circle.
final
centerSpaceRadius double
Radius of free space in center of the circle.
final
hashCode int
The hash code for this object.
no setterinherited
pieTouchData PieTouchData
Handles touch behaviors and responses.
final
props List<Object?>
Used for equality check, see EquatableMixin.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sections List<PieChartSectionData>
Defines showing sections of the PieChart.
final
sectionsSpace double
Defines gap between sections.
final
startDegreeOffset double
PieChart draws sections from zero degree (right side of the circle) clockwise.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
sumValue double
We hold this value to determine weight of each PieChartSectionData.value.
no setter
touchData FlTouchData<BaseTouchResponse>
Holds data needed to touch behavior and responses.
getter/setter pairinherited

Methods

copyWith({List<PieChartSectionData>? sections, double? centerSpaceRadius, Color? centerSpaceColor, double? sectionsSpace, double? startDegreeOffset, PieTouchData? pieTouchData, FlBorderData? borderData}) PieChartData
Copies current PieChartData to a new PieChartData, and replaces provided values.
lerp(BaseChartData a, BaseChartData b, double t) PieChartData
Lerps a BaseChartData based on t value, check Tween.lerp.
override
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