Skip to content

Commit d80ef03

Browse files
authored
Remove v2 syntax in migration guide (#27)
1 parent 71db1ba commit d80ef03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/migration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Make sure to also read the [Chart.js v3 migration guide](https://www.chartjs.org
1111
As described in the [getting started](getting-started.md#integration), it's now required to manually register this plugin, either globally:
1212

1313
```js
14-
Chart.plugins.register(ChartDeferred);
14+
Chart.register(ChartDeferred);
1515
```
1616

1717
or locally:
@@ -50,4 +50,4 @@ Chart.defaults.set('plugins.deferred', {
5050

5151
#### Chart.js type declaration <Badge text="TS only"/>
5252

53-
Chart.js v3 now provides TypeScript type declaration files bundled in the npm package so it's **not** anymore required to install the `@types/chart.js` package.
53+
Chart.js v3 now provides TypeScript type declaration files bundled in the npm package so it's **not** anymore required to install the `@types/chart.js` package.

0 commit comments

Comments
 (0)