Skip to content

This is a helper function that utilises d3.js to create pie charts.

License

Notifications You must be signed in to change notification settings

gajus/pie-chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Pie Chart

Simple function to generate Pie Charts (demo) utilisiing d3.js. This function is part of the http://xhprof.io/ project. It is able to handle datasets of arbitrary size. It has several options that allow for customisation, such as the label margin, circle radius and visibility of the percentage data (refer to the source code).

screenshot

Browser Support

FireFox cannot read the clientWidth of the SVG and the SVG itself does not expand to fill the container. Therefore, every Pie Chart SVG must be wrapped in a div container. The SVG element must have 100% width and height.

License & Notes

The BSD License - Copyright (c) 2012 Gajus Kuizinas.

About

This is a helper function that utilises d3.js to create pie charts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •