Skip to content

ignacioola/pie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pie

SVG pie chart.

Demo here.

Usage

pie = require("pie");

p = pie([1, 2, 3, 4]);

el = document.getElementById("parent");
el.appendChild(p.render());

Installation

component install ignacioola/pie

Or include the file:

build/pie.standalone.js

API

### pie(data)

Builds a pie instance

### .size(width, height)

Set the pie's size.

.render()

Renders the pie, returns the element.

Events

pie includes EventEmitter. Available events:

  • 'hover' : raised when the mouse hovers a wedge.

About

SVG pie chart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published