Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benpickles/peity
Progressive <svg> pie, donut, bar and line charts
https://github.com/benpickles/peity
chart jquery jquery-plugin
Last synced: 2 days ago
JSON representation
Progressive <svg> pie, donut, bar and line charts
- Host: GitHub
- URL: https://github.com/benpickles/peity
- Owner: benpickles
- License: mit
- Created: 2009-11-20T13:49:20.000Z (about 15 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T10:21:12.000Z (10 months ago)
- Last Synced: 2025-01-28T19:06:47.265Z (9 days ago)
- Topics: chart, jquery, jquery-plugin
- Language: HTML
- Homepage: http://benpickles.github.io/peity
- Size: 458 KB
- Stars: 4,222
- Watchers: 135
- Forks: 400
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome - benpickles/peity - Progressive \<svg> pie, donut, bar and line charts (HTML)
- awesome-javascript - peity - Progressive <svg> bar, line and pie charts. (Data Visualization / Runner)
- awesome-javascript - peity - Progressive <svg> pie, donut, bar and line charts - ★ 4089 (Data Visualization)
README
# Peity
[![Tests](https://github.com/benpickles/peity/actions/workflows/tests.yml/badge.svg)](https://github.com/benpickles/peity/actions/workflows/tests.yml)
Peity (sounds like deity) is a jQuery plugin that converts an element's content into a mini `` pie, donut, line or bar chart.
## Basic Usage
### HTML
```html
3/5
5,2,3
3,5,1,6,2
```### JavaScript (jQuery)
```js
$(".pie").peity("pie");
$(".donut").peity("donut");
$(".line").peity("line");
$(".bar").peity("bar");
```## Docs
More detailed usage can be found at [benpickles.github.io/peity](http://benpickles.github.io/peity/).
## Development
Run the automated tests with:
npm test
To manually view all test cases run:
make server
And hit .
## Release
Update the version string in `jquery.peity.js`, run `make release`, and follow the instructions.
## Copyright
Copyright 2009-2020 [Ben Pickles](http://benpickles.com/). See [LICENCE](https://github.com/benpickles/peity/blob/master/LICENCE) for details.