create-sparkline-using-chartjs
Generate sparkline charts with Chart.js by specifying configuration and action type (get URL or save as file), and customize width, height, and background color for precise visualization needs.
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) |