Introducing Chart.js

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 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 us with an easy-to-use API to make rich, interactive charts and comes with an MIT license, which is very open and unrestrictive, both for personal as well as commercial use.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.112.220