Introduction to Chart.js
Chart.js is an open source community-maintained JavaScript data visualization library based on HTML5 Canvas. At the time of writing, it is available as version 2.7.3, and comes with eight customizable chart types. It's very easy to create a chart using Chart.js. It can be as simple as loading the JavaScript library into your page, choosing a chart type, and providing it with an array of data.
All charts are configured with a default look and feel, as well as basic interactive features. You can focus on the data and quickly create a simple responsive and interactive chart that fits nicely in your page. You don't have to worry about configuring padding or margins, fitting labels in axes, adding tooltips, or controlling transitions. But if you need to change something, there are many configuration options available.
Installation and setup
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...