Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini `svg` pie, line or bar chart.
npm install peity
Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini pie, donut, line or bar chart.
``html`
3/5
5,2,3
3,5,1,6,2
`js`
$(".pie").peity("pie");
$(".donut").peity("donut");
$(".line").peity("line");
$(".bar").peity("bar");
More detailed usage can be found at benpickles.github.io/peity.
Run the automated visual regression tests with:
make test
Run a filtered set of tests with:
ARGS="--grep bar" make test
To manually view all test cases run:
make server
And hit
Update the version string in jquery.peity.js, run make release`, and follow the instructions.
Copyright 2009-2018 Ben Pickles. See LICENCE for details.