Skip to content
forked from lipka/piecon

A tiny javascript library for generating progress pie charts in your favicon.

Notifications You must be signed in to change notification settings

evolvedhat/piecon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piecon

A small JavaScript library for dynamically generating progress pie charts in your favicons. Now available with Retina support so you can enjoy pixel-perfect crisp graphics!

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+

License

Licensed under the MIT license.

Credits

Piecon was inspired by Tom's Tinycon.

About

A tiny javascript library for generating progress pie charts in your favicon.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.3%
  • HTML 8.7%