DonutChart
đź“”
This component is in an experimental state; you can use it in your app. However, we may modify it, and it may even have breaking changes in the future.
Represents a derivative of the pie chart that is a donut chart.
Properties
data
The data to be displayed in the chart. Needs to be an array of objects.
dataKeys
This property specifies the keys in the data objects that should be used for rendering the bars.
innerRadius (default: 60)
Sets the inner radius of the donut chart.
nameKey
Specifies the key in the data objects that will be used to label the different data series.
showLabel (default: true)
Toggles whether to show labels (true
) or not (false
).
showLabelList (default: false)
Whether to show labels in a list (true
) or not (false
).
showLegend (default: false)
Whether to show a legend (true
) or not (false
).
Events
This component does not have any events.
Exposed Methods
This component does not expose any methods.
Styling
This component does not have any styles.