The Wayback Machine - https://web.archive.org/web/20201004044420/https://github.com/boatx/ChartJS
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ChartJS

Pie charts JavaScript library.

Build

To build call:

webpack

Usage

  const elements = {
    dogs: 0.3,
    cats: 0.6,
    dinosaurs: 0.1,
  };

  const colors = {
    dogs: 'green',
    cats: 'blue',
    dinosaurs: 'red',
  };

  const canvas = document.getElementById('can');
  const chart = new PieChart(elements, colors, canvas);
  chart.draw();
You can’t perform that action at this time.