npm / chart.js
chart.js
What changed in chart.js 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
1 new APIs and options2 behavior and defaults5 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initchart.js 46 changes
New APIs and options 1
Enabled stroke for scale titles.
Behavior and default changes 2
Types now allow scriptable and indexed grid tick widths.
Types now allow scriptable and indexed grid tick widths.
Fixes and other changes 3
Canvas dimensions are now integers.
Fixed fill extending past a line when offset is true and the index scale has min/max.
Corrected spacing in pie, doughnut, and polar area charts.
chart.js 32 changes
Fixes and other changes 2
Fixes the tooltip align type.
Fixes external tooltip types.