peity

Progressive pie, donut, bar and line charts

Github stars Tracking Chart

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

Main metrics

Overview
Name With Ownerbenpickles/peity
Primary LanguageHTML
Program languageRuby (Language Count: 6)
Platform
License:MIT License
所有者活动
Created At2009-11-20 13:49:20
Pushed At2024-04-11 10:21:12
Last Commit At
Release Count34
Last Release Namev3.3.0 (Posted on )
First Release Namev0.2.0 (Posted on )
用户参与
Stargazers Count4.2k
Watchers Count133
Fork Count399
Commits Count334
Has Issues Enabled
Issues Count75
Issue Open Count21
Pull Requests Count23
Pull Requests Open Count2
Pull Requests Close Count9
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private