generate_pie_chart
Create pie charts to visualize proportional data like market share or budget allocation. Customize charts with themes, colors, and styles to display data distributions clearly.
Instructions
Generate a pie chart to show the proportion of parts, such as, market share and budget allocation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data for pie chart, it should be an array of objects, each object contains a `category` field and a `value` field, such as, [{ category: '分类一', value: 27 }]. | |
| innerRadius | No | Set the innerRadius of pie chart, the value between 0 and 1. Set the pie chart as a donut chart. Set the value to 0.6 or number in [0 ,1] to enable it. | |
| style | No | Style configuration for the chart with a JSON object, optional. | |
| theme | No | Set the theme for the chart, optional, default is 'default'. | default |
| width | No | Set the width of chart, default is 600. | |
| height | No | Set the height of chart, default is 400. | |
| title | No | Set the title of chart. |