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

Other1 credits

Call information

Tool slug
chart.generate_line_chart
Provider
Chart
Average response
58 ms
Calls in 7 days
1

Input parameters

datarequired

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.