A simple, light-weight charting library built on top of d3.js
.
You can easily install the package from Bower. Make sure that, you already have
bower
installed.
bower install fubar-charts
Let's see how to draw a simple bar chart using this library.
HTML
<div class="chart-container" id="first-container"> </div>
JavaScript
var element = document.querySelector('.chart-container');
var data = [ ['2014', 50], ['2015', 70], ['2016', 30], ['2017', 40] ];
var chart = new BarChart(element, data);
Output
Live Example
Here is the JSFiddle link for the same.