chartjs-plugins
Installation
SKILL.md
Chart.js Custom Plugins (v4.5.1)
Complete guide to creating and using custom plugins in Chart.js.
Plugin Basics
Plugins are the most efficient way to customize or change Chart.js default behavior. Plugins provide hooks into the chart lifecycle to execute custom code.
Plugin Types
| Type | Scope | Use Case |
|---|---|---|
| Inline | Single chart instance | One-off customizations |
| Shared | Multiple charts | Reusable across specific charts |
| Global | All charts | Site-wide defaults |
Inline Plugins
Define directly in chart config: