generate_chart
Create charts by providing type, datasets, labels, and options. Get a QuickChart URL or download the image to your desired path.
Instructions
Generate a chart using QuickChart.
Args:
chart_input: Chart configuration including type, datasets, labels, title, and options
download: If True, download the chart image and return the saved file path; otherwise return the URL
output_path: Path where the chart image should be saved if download=True. If not provided,
the chart will be saved to the script directory.
Returns:
The URL of the generated chart if download=False, otherwise the path where the chart was saved
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| download | No | ||
| chart_input | Yes | ||
| output_path | No |