---
name: "chartjs-responsive-canvas-charts"
description: "Build responsive, interactive HTML5 canvas charts and graphs with Chart.js 4."
metadata:
  author: "Chart.js"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create line chart chartjs"
  - "customize tooltip callbacks chartjs"
  - "responsive chartjs canvas"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Chart.js Responsive Canvas Data Visualizations

Configures Chart.js: line charts, bar charts, doughnut charts, custom tooltip callbacks, multi-axis scales, dark mode themes, and zoom/pan plugins.

## When to Invoke
Invoke this skill whenever you need to:
- create line chart chartjs
- customize tooltip callbacks chartjs
- responsive chartjs canvas

## Execution SOP & Rules
1. Initialize chart with new Chart(ctx, { type: 'line', data: ..., options: ... }).
2. Configure responsive: true and maintainAspectRatio: false inside container divs.
3. Format tooltip labels using plugins.tooltip.callbacks.label function.
4. Destroy chart instances with chart.destroy() before re-instantiating on updated data.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
