Skip to content

Commit

Permalink
Improved links [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Sep 25, 2023
1 parent f65cfe7 commit e6b1107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/Chartjs-Plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Chartkick works with Chart.js global plugins. Here’s how to add the [annotation](https://www.chartjs.org/chartjs-plugin-annotation/latest/) plugin.

For Importmaps, download the [UMD version](https://unpkg.com/chartjs-plugin-annotation@3.0.1/dist/chartjs-plugin-annotation.cjs) to `vendor/javascript`, change the extension from `.cjs` to `.js`, pin it in `config/importmap.rb`, and use:
For Importmaps, download the [UMD version](https://unpkg.com/chartjs-plugin-annotation@3/dist/chartjs-plugin-annotation.cjs) to `vendor/javascript`, change the extension from `.cjs` to `.js`, pin it in `config/importmap.rb`, and use:

```javascript
import "chartjs-plugin-annotation"
Expand All @@ -17,7 +17,7 @@ import annotationPlugin from "chartjs-plugin-annotation"
Chart.register(annotationPlugin)
```

For Sprockets, download the [UMD version](https://unpkg.com/chartjs-plugin-annotation@3.0.1/dist/chartjs-plugin-annotation.cjs) to `vendor/assets/javascripts`, change the extension from `.cjs` to `.js`, and use:
For Sprockets, download the [UMD version](https://unpkg.com/chartjs-plugin-annotation@3/dist/chartjs-plugin-annotation.cjs) to `vendor/assets/javascripts`, change the extension from `.cjs` to `.js`, and use:

```javascript
//= require chartjs-plugin-annotation
Expand Down

0 comments on commit e6b1107

Please sign in to comment.