# What changed in chart.js

> 8 changes in chart.js 3 to 4 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/chart.js/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## chart.js 4

### New APIs and options

- Enabled stroke for scale titles. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)

### Behavior and default changes

- Types now allow scriptable and indexed grid tick widths. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)
- Types now allow scriptable and indexed grid tick widths. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)

### Fixes and other changes

- Canvas dimensions are now integers. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)
- Fixed fill extending past a line when offset is true and the index scale has min/max. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)
- Corrected spacing in pie, doughnut, and polar area charts. (4.6.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v4.6.0)

## chart.js 3

### Fixes and other changes

- Fixes the tooltip align type. (3.0.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0)
- Fixes external tooltip types. (3.0.0) — [release notes](https://github.com/chartjs/Chart.js/releases/tag/v3.0.0)
