diff --git a/guides/Chartjs-Plugins.md b/guides/Chartjs-Plugins.md index de023ac..a9e0215 100644 --- a/guides/Chartjs-Plugins.md +++ b/guides/Chartjs-Plugins.md @@ -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" @@ -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