Sparkline Graphs for Ruby

Description

Sparklines are small graphs for use in tables or inline with text. Invented by Edward Tufte. Implemented in many languages.

Source

Get it at GitHub.

Samples

Bar graph with color differentiation and target line.
Stephen Few’s bullet graph with acceptable ranges and a target.
Pie—Shows a single percentage
Smooth—Shows continuous data
Area—Highlights data with a colored threshold
Discrete—Uses vertical lines

Source

sudo gem install sparklines

Or, get it from RubyForge.

Source repository is at GitHub.

Documentation

In the wild

Posts about Sparklines

Other Graphing Libraries

  • Gruff—More full-featured graphs with labels, colors, and more complicated graph types.

Books

If you’re interested in the presentation of data, you MUST at minimum buy:

  • Information Dashboard Design by Stephen Few. Chapter 4 alone is worth the price of the book. It talks about the way our minds perceive graphical representations and which ones are most effective.

Highly recommended are also

Nuby on Rails

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

Manufactured with

Subscribe

Subscribe (RSS)