aicodedecode/awesome-muse-skills/chartjs-pro
Claude Code and agent skill by aicodedecode/awesome-muse-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Build charts with Chart.js: configuration, plugins, custom tooltips, real-time updates, and dashboard patterns. Use for standard charts in web apps.
Install
npx vskill@latest install aicodedecode/awesome-muse-skills/chartjs-proSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aicodedecode/awesome-muse-skills/chartjs-pro.
Chart.js Pro
A practical guide to Chart.js: the batteries-included charting library — configuration, scales, plugins, custom tooltips, real-time streaming data, and the dashboard patterns that keep charts fast and readable.
Overview
Chart.js renders common chart types (line, bar, pie/doughnut, radar, scatter, bubble) on canvas with sensible defaults, animations, and interactivity out of the box. It's the right choice when the design is a standard chart done well — reach for D3 when the design is custom. v3+ is tree-shakeable (register only what you use) and ESM-friendly.
When to use
- Dashboards: KPI trends, category breakdowns, distributions.
- Standard charts with good defaults and minimal code.
- Real-time/streaming data displays.
- When bundle size matters (register only needed controllers/scales).
Core concepts
- Registration.
import { Chart, LineController, LineElement, PointElement, LinearScale, CategoryScale, Tooltip, Legend } from 'chart.js'; Chart.register(...)— tree-shaking requires explicit registration; thechart.js/autobundle registers everything (simpler, bigger). - Config shape.
{ type: 'line', data: { labels, datasets: [{ label, data, borderColor, ... }] }, options: { responsive, plugins, scales } }. - Scales.
x/y:linear,logarithmic,time(needs date adapter),category.stacked: truefor stacked bars;beginAtZerofor bars. - Plugins. Built-in: legend, tooltip, title, subtitle. Custom plugins via
{ id, beforeDraw, afterDatasetsDraw, ... }hooks — for watermarks, annotations, custom overlays. - Tooltips.
options.plugins.tooltip.callbackscustomize label/title/footer;externalfor fully custom HTML tooltips (better styling control). - Updates.
chart.data.datasets[0].data.push(x); chart.update('none')— mutate + update, don't recreate the chart.'none'/'active'modes control animation on update. - Decimation.
parsing: false+ decimation plugin for large datasets (10k+ points) — renders a representative subset.
Practical workflow
1. Setup (tree-shaken).
2. Time-series line chart.
3. Real-time streaming.
4. Custom HTML tooltip (external). Render a div positioned from context.tooltip.caretX/caretY — full CSS control, accessible markup.
5. Dashboard discipline. One chart instance per canvas; chart.destroy() on unmount (React useEffect cleanup); shared color palette; consistent number formatting.
Common pitfalls
- Recreating charts on data change.
new Chartper update leaks canvases and restarts animations. Mutate data +chart.update(). - Missing destroy. SPA navigation without
chart.destroy()leaks memory and event listeners. Cleanup in effect returns. - Forgetting registration. "Controller not registered" errors = tree-shaken build missing a
Chart.register. Register everything you use. - Time scale without adapter.
type: 'time'needschartjs-adapter-date-fns(or luxon/moment). Without it, cryptic errors. - Animation on streaming updates. Default animations on every pushed point = jank.
update('none')for real-time. - Huge datasets un-decimated. 50k points without decimation/parsing:false = frozen tab. Decimate or aggregate server-side.
- Unreadable defaults. Tiny fonts, colliding labels, rainbow palettes. Set
Chart.defaults.font, limit ticks (maxTicksLimit), use a deliberate palette. - Canvas sizing. Chart.js is responsive via parent container — the canvas needs a sized parent (
position: relative; height: 300px), not fixed canvas attributes. - No empty/error states. Charts with no data render as blank confusion. Handle loading/empty/error explicitly around the canvas.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/chartjs-pro/SKILL.md
Popularity
- Repository stars
- 10
- Repository forks
- 1
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aicodedecode/awesome-muse-skills/chartjs-pro)