项目
在 GitHub 查看
lipka/piecon
关于
用于在网站图标中生成进度饼图的微型 JavaScript 库。
数据与分析实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -1
- 1个月
- -2
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Piecon
Pie charts in your favicon! A tiny javascript library for dynamically generating progress pie charts in your favicons.
Now with retina support!

See the live demo here.
Documentation
Basic usage
Piecon.setProgress(12);
Piecon.setProgress(25);
...
Piecon.reset();
Options
Piecon.setOptions({
color: '#ff0084', // Pie chart color
background: '#bbb', // Empty pie chart color
shadow: '#fff', // Outer ring color
fallback: false // Toggles displaying percentage in the title bar (possible values - true, false, 'force')
});
Browser Support
Piecon has been tested to work completely in the following browsers (older versions may be supported, but haven't been tested):
- Chrome 15+
- Firefox 9+
- Opera 11+
Currently the library falls back to title updates for the following browsers:
- Internet Explorer 9
- Safari 5+
Piecon is retina compatible so you can enjoy pixel-perfect crisp graphics.
License
Licensed under the MIT license.
Credits
Piecon was inspired by Tom's Tinycon.
探索相关项目
加载中…