CSS Graphs Coming Soon 5 comments

posted Tuesday, January 3, 2006 by topfunky

  • 27
  • 20
  • 70
  • 55
  • 98
  • 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…

5 comments

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

  • Gravatar icon ian

    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.

  • Gravatar icon phil

    Rollovers with values would be a nice addition

Your Comment

Nuby on Rails

Geoffrey Grosenbach / Ruby / Code / Graphics / Design / Rails / Merb / Javascript / CSS

Manufactured with

Subscribe

Subscribe (RSS)