TOOL API
generate_ pie_ chart
generate_pie_chart
data1 credits
Call information
- Tool slug
- chart-gen.generate_pie_chart
- Provider
- Chart Tools
- Average response
- 0 ms
- Calls in 7 days
- 0
Input parameters
datarequiredData for pie chart, such as, [{ category: 'Category A', value: 27 }, { category: 'Category B', value: 25 }].
heightSet the height of the chart, default is 600px.
innerRadiusSet 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.
themeSet the theme for the chart, optional, default is 'default'.
titleSet the title of the chart.
widthSet the width of the chart, default is 800px.
outputTypeThe output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the valid ECharts option.