工具 API

generate_line_chart

Generate a line chart to show trends over time, such as, the ratio of Apple computer sales to Apple's profits changed from 2000 to 2016.

其他1 积分

调用信息

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

输入参数

data必填

Data for line chart, it should be an array of objects, each object contains a `time` field and a `value` field, such as, [{ time: '2015', value: 23 }, { time: '2016', value: 32 }].

stack

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

style

Custom style configuration for the chart.

theme

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

width

Set the width of chart, default is 600.

height

Set the height of chart, default is 400.

title

Set the title of chart.

axisXTitle

Set the x-axis title of chart.

axisYTitle

Set the y-axis title of chart.