posted
Tuesday, January 3, 2006
by
topfunky
- Apples
- Oranges
- Mangoes
- Pears
- Kiwis
# Rails helper
css_graph ['apples', 27],
['oranges', 20],
['mangoes', 70],
['pears', 55],
['kiwis', 98]
- RMagick NOT required
- Pure CSS (or use an optional pre-made gradient for snappy Web 2.0 style)
- Inspiration thanks to Apples to Oranges
Coming soon…
Leave a response
It’d be nice if the columns had a fallback solid color too. Folks without images see white text and a white bg…
This looks fantastic though.
CSS graphs! DVORAK! Window or aisle? ;-)
thanks again, Geoff
dude. that’s pretty cool.
I agree with Rick – it would be much better if you specified the colour in the CSS.
Couldn’t the base class use a transparent gradient PNG leaving you to set the colour in the style attribute along with the height (with fallback default range of colours if unspecified). Then perhaps a conditional comment to fix the PNG for IE.
Rollovers with values would be a nice addition