工具 API

generate_echarts

generate_echarts

data1 积分

调用信息

工具标识
chart-gen.generate_echarts
服务提供方
图表生成工具
平均响应
0 ms
近 7 天调用
0

输入参数

echartsOption必填

ECharts option and configuration used to generate charts. For example: { "title": { "text": "ECharts Entry Example", "left": "center", "top": "2%" }, "tooltip": {}, "xAxis": { "data": ["shirt", "cardigan", "chiffon", "pants", "heels", "socks"] }, "yAxis": {}, "series": [{ "name": "Sales", "type": "bar", "data": [5, 20, 36, 10, 10, 20] }] } ATTENTION: A valid ECharts option must be a valid JSON string, and cannot be empty.

width

The width of the ECharts in pixels. Default is 800.

height

The height of the ECharts in pixels. Default is 600.

theme

ECharts theme, optional. Default is 'default'.

outputType

The 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.