generate_pie_chart
Create pie charts to visualize data proportions like market share or budget allocation. Customize dimensions, themes, and donut-style charts with ease using structured input data.
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, such as, [{ category: 'Category A', value: 27 }, { category: 'Category B', value: 25 }]. | |
height | No | Set the height of the chart, default is 600px. | |
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. | |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of the chart. | |
width | No | Set the width of the chart, default is 800px. |