peity

Progressive pie, donut, bar and line charts

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者benpickles/peity
主編程語言HTML
編程語言Ruby (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2009-11-20 13:49:20
推送於2024-04-11 10:21:12
最后一次提交
發布數34
最新版本名稱v3.3.0 (發布於 )
第一版名稱v0.2.0 (發布於 )
用户参与
星數4.2k
關注者數133
派生數399
提交數334
已啟用問題?
問題數75
打開的問題數21
拉請求數23
打開的拉請求數2
關閉的拉請求數9
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?