• Stars
    star
    4,220
  • Rank 9,727 (Top 0.2 %)
  • Language
    HTML
  • License
    MIT License
  • Created over 14 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

Copyright 2009-2020 Ben Pickles. See LICENCE for details.

More Repositories

1

js-model

Work with models in your JavaScript
JavaScript
402
star
2

parklife

Render a Rack app (Rails/Sinatra/etc) to a static build so it can be served by Netlify, Now, GitHub Pages, S3, or any other web server.
Ruby
182
star
3

onScreen

Custom jQuery selector to detect elements currently on-screen
HTML
87
star
4

screamshot

A synchronous HTTP screenshot service for headless Chrome.
Ruby
26
star
5

medium

Medium API Ruby Client
Ruby
21
star
6

operatic

A minimal standard interface for your Ruby operations.
Ruby
19
star
7

aesthetic

Regression-test your site and ensure that tiny CSS changes don't have unintentional side effects
Ruby
11
star
8

fewer

Fewer is a Rack endpoint to bundle and cache assets and help you make fewer HTTP requests.
Ruby
8
star
9

js-model-rails

Work with models in your JavaScript in your Rails
JavaScript
6
star
10

phlex-sinatra

A Phlex adapter for Sinatra
Ruby
5
star
11

clocks

Clock experiments
JavaScript
5
star
12

wapper

Wapper (wapər) - wrap selected text in other elements
JavaScript
3
star
13

contentz

Contentz (pronounced "content zee") is an ActiveRecord extension that uses Zlib to compress/uncompress attribute data on write/read.
Ruby
3
star
14

snipplet

A customisable bookmarklet router based on shortwaveapp.com and written in Rails.
Ruby
2
star
15

template

Template objects that are jQuery objects that are template objects that are...
JavaScript
2
star
16

dragonfly-s3-server

Isolate Dragonfly processing and serving of S3 assets from your main app.
Ruby
2
star
17

all_your

A little experiment to see how many characters can be used in a link shortener's path.
Ruby
1
star
18

v

A Vim command line wrapper
Ruby
1
star
19

benpickles.github.com

JavaScript
1
star
20

ladder-native

JavaScript
1
star