benpickles/peity

🍰 Progressive <svg> pie, donut, bar and line charts

4,213

stars

331

commits

HTML

primary language

Apr 11, 2024

updated

benpickles.github.io/peity
chart
jquery
jquery-plugin

README

Peity

Tests

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 tests with:

npm 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 2009-2020 Ben Pickles. See LICENCE for details.

Contributors

benpickles

312 commits

ismasan

8 commits

buunguyen

7 commits

olivernn

2 commits

benpickles/peity

🍰 Progressive <svg> pie, donut, bar and line charts

4,213

stars

331

commits

HTML

primary language

Apr 11, 2024

updated

benpickles.github.io/peity
chart
jquery
jquery-plugin

README

Peity

Tests

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 tests with:

npm 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 2009-2020 Ben Pickles. See LICENCE for details.

Contributors

benpickles

312 commits

ismasan

8 commits

buunguyen

7 commits

olivernn

2 commits

Languages

HTML

64.5%

JavaScript

28.3%

Ruby

2.4%

EJS

2.2%

Makefile

2.0%