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. Hosted by Darwin using AntV's public free renderer. Returns a PNG image. Accepts at most 50 rows with bounded image sizes. No API key is required; payments are not supported.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>"
},
"name": "generate_line_chart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| style | No | ||
| theme | No | Set the theme for the chart, optional, default is 'default'. | default |
| title | No | ||
| width | No | ||
| height | No | ||
| axisXTitle | No | ||
| axisYTitle | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| artifact | Yes | ||
| provenance | Yes | ||
| requestMetadata | Yes |