SVG pie chart.
Demo here.
pie = require("pie");
p = pie([1, 2, 3, 4]);
el = document.getElementById("parent");
el.appendChild(p.render());
component install ignacioola/pie
Or include the file:
build/pie.standalone.js
### pie(data)
Builds a pie instance
### .size(width, height)
Set the pie's size.
Renders the pie, returns the element.
pie
includes EventEmitter
. Available events:
- 'hover' : raised when the mouse hovers a wedge.