jQuery Binary Bar
Here's a quick demo of it working, using a random number generator:
require jQuery and the jQuery widget factory, but the code also uses
drawing polygons) and
jquery.timers (for its animation).
To create the basic widget, create an element in the page and then apply the widget to it, just as you would with any jQuery widget:
The plugin is very basic and only has one method, which is
setValues. This expects a 2-element
array which contains a value for each bar, between 0 and
maxValue in the options.
$('#bar').binarybar( 'setValues', [8,4] );
The code is released under the MIT license, which basically means you can do whatever you like except pretend it's yours.