Home  »  CodeLibrariesSnippetsTechnologyTools   »   Chart.js CDN URL Example

Chart.js CDN URL Example

Posted: December 17, 2022 | by Michael Bright

This is the Chart.js CDN.

https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.1.0/chart.min.js

This is how to use Chart.js with CDN.

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.1.0/chart.min.js" integrity="sha512-xemBn324HMu/8XzlHvoVKvDdTmVLCZelF4mlovpiLO8wwfz6zpMysv2f8WfqUWX/g2IuAGErdqytAnYgN70uNw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

Using jsdelivr.

https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js

Here is the HTML code.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.