generate_area_chart
Generate area charts to show data trends over continuous independent variables, using filled areas to represent cumulative changes and overall patterns.
Instructions
Generate a area chart to show data trends under continuous independent variables and observe the overall data trend, such as, displacement = velocity (average or instantaneous) × time: s = v × t. If the x-axis is time (t) and the y-axis is velocity (v) at each moment, an area chart allows you to observe the trend of velocity over time and infer the distance traveled by the area's size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data for area chart, such as, [{ time: '2018', value: 99.9 }]. | |
| stack | No | Whether stacking is enabled. When enabled, area 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. |