Following up the discussion in the last section, choosing a library to create charts appears to be the most logical choice. There are a lot of popular libraries to choose from. Out of these, the most popular are as follows:
- D3 (https://d3js.org/)
- Chart.js (http://www.chartjs.org/)
- Highcharts (https://www.highcharts.com/)
D3 is more of a general purpose library, and even though it's really great at making charts, there is still a lot of boilerplate code that has to be written to get a simple chart running.
Highcharts solves this problem by providing an easy configuration-based API that lets us create rich charts with just a few lines of code, but it comes with a very restricted license. This essentially means that any commercial applications are out of the question unless you get a paid subscription.
Chart.js gives us the best of both worlds. It provides...