Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.22 KB

README.md

File metadata and controls

55 lines (35 loc) · 1.22 KB

FUBAR CHARTS

A simple, light-weight charting library built on top of d3.js.


INSTALLATION

You can easily install the package from Bower. Make sure that, you already have
bower installed.

bower install fubar-charts

EXAMPLE

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

Basic Bar Chart Example

Live Example

Here is the JSFiddle link for the same.


DOCUMENTATION

  1. Bar Chart
  2. Stacked Bar Chart
  3. Line Chart
  4. Multi Line Chart