# peity

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

Latest version **3.3.0** (published 2018-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install peity
pnpm add peity
yarn add peity
bun add peity
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.0 |
| Published | 2018-01-18 |
| First published | 2015-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4215 |
| Author | Ben Pickles |
| Maintainers | benpickles |
| Keywords | jquery-plugin, ecosystem:jquery, chart, graph, sparkline, svg |

## Links

- npm: https://www.npmjs.com/package/peity
- Repository: https://github.com/benpickles/peity
- Issues: https://github.com/benpickles/peity/issues
- npm.io page: https://npm.io/package/peity

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 3.3.0 (latest) — 2018-01-18
- 3.2.1 — 2016-10-10
- 3.2.0 — 2015-04-17
- 3.1.2 — 2015-04-14
- 3.1.1 — 2015-03-23

## README

# Peity

[![Build Status](https://travis-ci.org/benpickles/peity.svg?branch=master)](https://travis-ci.org/benpickles/peity)

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

```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)

```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 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](http://benpickles.com/). See [LICENCE](https://github.com/benpickles/peity/blob/master/LICENCE) for details.

---
_Source: https://npm.io/package/peity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
