工具 API

generate_line_chart

generate_line_chart

data1 积分

调用信息

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

输入参数

axisXTitle

Set the x-axis title of chart.

axisYTitle

Set the y-axis title of chart.

data必填

Data for line chart, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }]. For multiple series: [{ group: 'Series A', time: '2015', value: 23 }, { group: 'Series B', time: '2015', value: 18 }].

height

Set the height of the chart, default is 600px.

showArea

Whether to fill the area under the line. Default is false.

showSymbol

Whether to show symbols on data points. Default is true.

smooth

Whether to use a smooth curve. Default is false.

stack

Whether stacking is enabled. When enabled, line charts require a 'group' field in the data.

theme

Set the theme for the chart, optional, default is 'default'.

title

Set the title of the chart.

width

Set the width of the chart, default is 800px.

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.