generate_line_chart
Generate a line chart from time-value data to display trends. Customize chart title, axis titles, width, height, and theme for offline use.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data for line chart, such as, [{ time: '2015', value: 23 }]. | |
| stack | No | Whether stacking is enabled. When enabled, line charts require a 'group' field in the data. | |
| theme | No | Set the theme for the chart, optional, default is 'default'. | default |
| width | No | Set the width of chart, default is 600. | |
| height | No | Set the height of chart, default is 400. | |
| title | No | Set the title of chart. | |
| axisXTitle | No | Set the x-axis title of chart. | |
| axisYTitle | No | Set the y-axis title of chart. |