What problem does it solve?
chart-image provides a lightweight, server-friendly way to generate publication-quality PNG charts from data without relying on browser-based rendering or external chart services, enabling automated reporting and dashboards.
Core Features & Use Cases
- Chart generation: Produce line, bar, and area charts from JSON data for reports and monitoring dashboards.
- Headless rendering: Runs in server/VPS environments without a browser.
- Output formats: Exports PNG images using Vega-Lite via Node.js and sharp.
- Use Case: Generate a daily KPI chart from a JSON feed and save it to /tmp/chart.png for automatic email reports.
Quick Start
Use the chart-image skill to generate a simple line chart from sample data:
node /data/clawd/skills/chart-image/scripts/chart.mjs --type line --data '[{"x":"Jan","y":10},{"x":"Feb","y":12}]' --output /tmp/chart.png