generate_chart
Create customizable charts (bar, line, pie, radar, etc.) using QuickChart.io. Input data, labels, and configurations to generate visualizations tailored to your needs.
Instructions
Generate a chart using QuickChart
Input Schema
Name | Required | Description | Default |
---|---|---|---|
datasets | Yes | ||
labels | No | Labels for data points | |
options | No | ||
title | No | ||
type | Yes | Chart type (bar, line, pie, doughnut, radar, polarArea, scatter, bubble, radialGauge, speedometer) |
Input Schema (JSON Schema)
{
"properties": {
"datasets": {
"items": {
"properties": {
"additionalConfig": {
"type": "object"
},
"backgroundColor": {
"oneOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"borderColor": {
"oneOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
},
"data": {
"type": "array"
},
"label": {
"type": "string"
}
},
"required": [
"data"
],
"type": "object"
},
"type": "array"
},
"labels": {
"description": "Labels for data points",
"items": {
"type": "string"
},
"type": "array"
},
"options": {
"type": "object"
},
"title": {
"type": "string"
},
"type": {
"description": "Chart type (bar, line, pie, doughnut, radar, polarArea, scatter, bubble, radialGauge, speedometer)",
"type": "string"
}
},
"required": [
"type",
"datasets"
],
"type": "object"
}