Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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
2,5,3,6,2,1
```

### 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.