工具 API
generate_ pie_ chart
Generate a pie chart to show the proportion of parts, such as, market share and budget allocation.
其他1 积分
调用信息
- 工具标识
- chart.generate_pie_chart
- 服务提供方
- 图表生成
- 平均响应
- 28 ms
- 近 7 天调用
- 2
输入参数
data必填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 }].
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.
styleCustom style configuration for the chart.
themeSet the theme for the chart, optional, default is 'default'.
widthSet the width of chart, default is 600.
heightSet the height of chart, default is 400.
titleSet the title of chart.