Tremorx
Visualizations
Donut Chart
Quick search...
⌘K
Storybook
Getting Started
Examples
Ui
Visualizations
Area Chart
Bar Chart
Donut Chart
Line Chart
- 0.6.3
Getting Started
Getting Started
Core Components
Examples
Core Components
Table
Examples
Table
Badge
Ui
Badge
Bold
Ui
Bold
Button
Ui
Button
Callout
Ui
Callout
Card
Ui
Card
Col
Ui
Col
Divider
Ui
Divider
Flex
Ui
Flex
Grid
Ui
Grid
Italic
Ui
Italic
Legend
Ui
Legend
List
Ui
List
Menu
Ui
Menu
Metric
Ui
Metric
Select
Ui
Select
Subtitle
Ui
Subtitle
Tab
Ui
Tab
Table
Ui
Table
Text
Ui
Text
Text Input
Ui
Text Input
Textarea
Ui
Textarea
Title
Ui
Title
Tooltip
Ui
Tooltip
Area Chart
Visualizations
Area Chart
Bar Chart
Visualizations
Bar Chart
Donut Chart
Visualizations
Donut Chart
Line Chart
Visualizations
Line Chart
Donut Chart
Stories
Playground
Source
Stories
Playground
Source
A donut chart displays quantitative information through a circular visualization.
Preview
Code
Attributes
Event logs
Attribute
Type
Documentation
Default
Value
id
:string
The id of the chart
"donutchart"
Required
value
*
:string
The value key of the data.
Required
category
*
:string
The category key of the data.
label
:string
The label of the data.
""
show_animation
:boolean
Whether to show animation when the chart is rendered.
false
show_label
:boolean
Whether to show the label.
false
show_tooltip
:boolean
Whether to show the tooltip on hover.
true
no_data_text
:string
The text to display when there is no data.
""
value_format
:string
The format to use for the value.
"(,.0f"
pad_angle
:float
The padding angle between slices in radians.
0.014
inner_radius_percent
:float
The inner radius of the donut chart as a percentage of the outer radius.
0.75
padding
:integer
The vertical padding between the chart and the container.
8
Required
data
*
:list
The data to display on the chart
colors
:list
The colors to use for each category
[]
class
:string
css classes to apply to the chart wrapper container
variant
:string
The variant of the chart
"donut"
donut
pie
rest
:global
Open a variation
Donut
Pie
With label and animation