create-sparkline-using-chartjs
Generate sparkline charts using Chart.js configuration. Obtain a direct URL or save the chart as an image file for integration into reports, dashboards, or visual analytics.
Instructions
Create sparkline charts using Chart.js - get sparkline image URL or save sparkline image to file
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Whether to get sparkline URL or save as file | |
backgroundColor | No | Background color (default: transparent) | |
chart | Yes | Chart.js configuration for sparkline | |
devicePixelRatio | No | Device pixel ratio (default: 2) | |
height | No | Chart height in pixels (default: 30) | |
outputPath | No | Path where to save the file (only used with action=save_file) | |
width | No | Chart width in pixels (default: 100) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "Whether to get sparkline URL or save as file",
"enum": [
"get_url",
"save_file"
],
"type": "string"
},
"backgroundColor": {
"description": "Background color (default: transparent)",
"type": "string"
},
"chart": {
"description": "Chart.js configuration for sparkline",
"type": "object"
},
"devicePixelRatio": {
"description": "Device pixel ratio (default: 2)",
"enum": [
1,
2
],
"type": "integer"
},
"height": {
"description": "Chart height in pixels (default: 30)",
"type": "integer"
},
"outputPath": {
"description": "Path where to save the file (only used with action=save_file)",
"type": "string"
},
"width": {
"description": "Chart width in pixels (default: 100)",
"type": "integer"
}
},
"required": [
"action",
"chart"
],
"type": "object"
}