Peity (sounds like deity) is a simple jQuery plugin that converts an element's content into a simple mini <svg>
pie, line or bar chart.
<span class="pie">3/5</span>
<span class="line">3,5,1,6,2</span>
<span class="bar">2,5,3,6,2,1</span>
$("span.pie").peity("pie");
$("span.line").peity("line");
$("span.bar").peity("bar");
More detailed usage can be found at benpickles.github.io/peity.
Run the tests with:
make test
Run a filtered set of tests with:
ARGS="--grep bar" make test
Update the version string in jquery.peity.js
, run make release
, and follow the instructions.
Copyright 2009-2014 Ben Pickles. See MIT-LICENCE for details.