Rails: Bar Graph Helper 0.1 Released

Posted on February 12, 2007
Filed Under /dev/ruby | 787 views |

As promised yesterday, I’ve rewritten the CSS Graphs Helper to provide much more functionality and flexibility. It is also not as a plugin, nor as a class, but as a Rails helper module. You can skip straight to the “manual” here: Rails: Bar Graph Helper or go right to the source code here: Rails: Bar Graph Helper Source Code.

It effectively composites vertical bar graphs (the ones in which the graphy line goes up and down) from properties you pass it and spits out a CSS-based HTML graph into your view.

fancy graph

(If this were a real Rails app, that graph would be HTML instead of an image.)

Suggestions, feature requests, bug fixes, patches all gladly welcome. Be nice with the criticisms, I’ve only been writing Ruby code and using Rails for five weeks :)

Update: I tweaked the source to support the full background tag in the graph background which means you can now use images in there. Tally ho!

Comments

Comments are closed.