Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module.exports = {
'types/polygon'
]
},
'migrationV1',
'migrationV2'
],
'/samples/': [
Expand Down
6 changes: 3 additions & 3 deletions v3-migration.md → docs/guide/migrationV1.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 3.x Migration Guide
# 1.x Migration Guide

chartjs-plugin-annotation 3.0 introduces a number of breaking changes.
`chartjs-plugin-annotation` plugin version 1 introduces a number of breaking changes in order to compatible with Chart.js 3 and to align with Chart.js 3 options.

## Setup and installation

* Chart.js 3 is tree-shakeable and thus requires registering the plugins when used as an `npm` module. Here is an example:
Chart.js 3 is tree-shakeable and thus requires registering the plugins when used as an `npm` module. Here is an example:

```javascript
import { Chart, LineController, LineElement, PointElement, LinearScale } from 'chart.js';
Expand Down