create-chart-using-googlecharts
Generate chart images using Google Charts by providing JavaScript code, choose to get a URL or save the file, and customize dimensions and packages for visualization needs.
Instructions
Create charts using Google Charts - get chart image URL or save chart image to file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Whether to get chart URL or save as file | |
code | Yes | JavaScript drawChart function code | |
height | No | Chart height in pixels | |
mapsApiKey | No | Google Maps API key (for geo charts) | |
outputPath | No | Path where to save the file (only used with action=save_file) | |
packages | No | Google Charts packages to load (default: 'corechart') | |
width | No | Chart width in pixels |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Whether to get chart URL or save as file",
"enum": [
"get_url",
"save_file"
],
"type": "string"
},
"code": {
"description": "JavaScript drawChart function code",
"type": "string"
},
"height": {
"description": "Chart height in pixels",
"type": "integer"
},
"mapsApiKey": {
"description": "Google Maps API key (for geo charts)",
"type": "string"
},
"outputPath": {
"description": "Path where to save the file (only used with action=save_file)",
"type": "string"
},
"packages": {
"description": "Google Charts packages to load (default: 'corechart')",
"type": "string"
},
"width": {
"description": "Chart width in pixels",
"type": "integer"
}
},
"required": [
"action",
"code"
],
"type": "object"
}