Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boatx/chartjs
Pie charts JavaScript library
https://github.com/boatx/chartjs
babel canvas es6 javascript pie-charts webpack
Last synced: about 1 month ago
JSON representation
Pie charts JavaScript library
- Host: GitHub
- URL: https://github.com/boatx/chartjs
- Owner: boatx
- License: gpl-3.0
- Created: 2013-06-11T20:11:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-04-02T17:47:48.000Z (10 months ago)
- Last Synced: 2024-04-02T18:55:39.281Z (10 months ago)
- Topics: babel, canvas, es6, javascript, pie-charts, webpack
- Language: JavaScript
- Homepage:
- Size: 948 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChartJS
Pie charts JavaScript library.
## Build
To build call:
```bash
webpack
```## Usage
```javascript
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();
```