Skip to content
Progressive <svg> pie, donut, bar and line charts
Branch: master
Clone or download
Latest commit c5f71c8 Feb 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Switch to Kramdown for Markdown conversion. Feb 10, 2017
docs
test Upgrade NPM packages. Feb 9, 2017
.gitignore Testing: compare known good chart images with current versions. Mar 24, 2014
.travis.yml Don't use an old version of Node on Travis. Feb 8, 2017
CHANGELOG.md Version 3.3.0. Jan 18, 2018
Gemfile
Gemfile.lock Switch to Kramdown for Markdown conversion. Feb 10, 2017
LICENCE
Makefile Upgrade to the latest uglify-js. Jan 18, 2018
README.md It's 2018. Jan 18, 2018
bower.json Version 3.3.0. Jan 18, 2018
composer.json
index.html
jquery.peity.js
jquery.peity.min.js Version 3.3.0. Jan 18, 2018
package.json Version 3.3.0. Jan 18, 2018
yarn.lock

README.md

Peity

Build Status

Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini <svg> pie, donut, line or bar chart.

Basic Usage

HTML

<span class="pie">3/5</span>
<span class="donut">5,2,3</span>
<span class="line">3,5,1,6,2</span>
<span class="bar">2,5,3,6,2,1</span>

JavaScript (jQuery)

$(".pie").peity("pie");
$(".donut").peity("donut");
$(".line").peity("line");
$(".bar").peity("bar");

Docs

More detailed usage can be found at benpickles.github.io/peity.

Development

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 http://localhost:8080/.

Release

Update the version string in jquery.peity.js, run make release, and follow the instructions.

Copyright

Copyright 2009-2018 Ben Pickles. See LICENCE for details.

You can’t perform that action at this time.