A tiny javascript library for generating progress pie charts in your favicon.
Pull request Compare This branch is 23 commits behind lipka:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
README.md
piecon.js
piecon.min.js

README.md

Piecon

Pie charts in your favicon!

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

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 Tinycon.

An Lipka project

Made by yours truly - @lipka.