February 2019
Beginner to intermediate
284 pages
6h 20m
English
To set up a web page for Chart.js, you just need to load the library. If you already have a website set up, you can download Chart.js from www.chartjs.org, store it where you can load it from a web page, and import it using the <script> tag, as follows:
<script src="../js/Chart.min.js"></script>
You can also use npm or bower to install Chart.js if you have a modular development environment, as shown in the following code. Chart.js integrates well with ES6 modules, Angular, React, and Vue applications:
npm install chart.js --savebower install chart.js --save
The simplest way to get started is to link to a library file provided by a Content Delivery Network (CDN). You can obtain a list at cdnjs.com/libraries/Chart.js ...
Read now
Unlock full access