chart
Installation
SKILL.md
Chart
Renders interactive charts in the browser using Chart.js from context-supplied data and chart type.
Workflow
- Extract data and chart type — identify labels, datasets, and chart type (bar, line, pie, doughnut, radar) from the user's request or conversation context.
- Choose colors — assign dataset colors from the standard palette. See TEMPLATE.md for the palette.
- Write the HTML file — write a complete self-contained file to
/tmp/chart.htmlusing the Chart.js template matching the chart type. See TEMPLATE.md for all templates. - Render in browser — follow
_shared/chrome-devtools-render.mdto open/tmp/chart.html, wait for render, screenshot, and fix-and-reload if needed.wait_forthe static<h2 id="ready">text (Chart.js renders to canvas — canvas text is NOT detectable bywait_for). See TROUBLESHOOTING.md for chart-specific fixes.
Self-review checklist
Before delivering, verify ALL: