SliceData
The data class that constructs the Pie Slices in a Pie/Donut Chart.
Jumping back to our previous example, we provided two SliceData
to show a PieChart containing two slices.
SliceData
defines the pie piece in a PieChart. It also provides the radius
of the Pie and styling options should you choose to customize each individual pie slices.
Let's modify the original PieChart example, and represent every Pie with a Different Radius.
Even if you can provide custom radius for a pie slice, it won't exceed the max_radius
limit which is calculated internally based on the Widget's Constraints.
Class Properties
Name
Type
Required
Default Value
value
num
true
-
style
SliceDataStyle?
false
null
label
SliceMapper?
false
null
labelStyle
ChartTextStyle?
false
null
Last updated