From e6b11076a3196b1a820ab54dbd8d1ef448e7a2b7 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 24 Sep 2023 18:20:47 -0700 Subject: [PATCH] Improved links [skip ci] --- guides/Chartjs-Plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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