DonutChart
Donut charts nicely convey the part-whole relationship and they have become the most recognizable chart types for representing proportions in business and data statistics.
Usage
This example demonstrates a simple donut chart with two data points.
Thin
If you need to have a thin donut chart, you can set the type prop to thin.
Split data
Use the splitBy property to split the data into different groups.
Custom ECharts options
If needed, you can customize the chart using ECharts options.
In this example, we:
- Use round icons in the legend
- Position labels next to each slice
- Adjust the
radiusto create a pie look instead of a donut - Style slice borders to make the margins visible
Last updated on