oesmith/morris.js — pull request #101 by tiraeth (2012-10-31 19:53:02+00:00)
Title: Morris.Bar revisited + necessary Morris.Grid changes

Morris.Bar for refactored version - I am a such impatient programmer, forgive me please :-)

Features:
* Multiple series (as much as the paper can hold),
* 2-color vertical gradient with `@ymax` as the reference for "top",
* 3-color vertical gradient (only: 0%-50%-100%), reference as above,
* opacity decrease on x-axis category hover,

Because I needed to move first and last x-axis category to not make any bar exceed the paper geometry, I had updated `Morris.Grid` to allow padding per side (css-like syntax), extract Grid left/right padding, and add additional callback `@overridePadding() if @overridePadding` which allowed me to change all these values to get the chart working.

Example included with the library:
![Morris.Bar](http://i45.tinypic.com/10xwlr8.jpg)