Module: Gruff

Defined in:
lib/gruff/base.rb,
lib/gruff/themes.rb,
lib/gruff/version.rb,
lib/gruff/mini/bar.rb,
lib/gruff/mini/pie.rb,
lib/gruff/mini/legend.rb,
lib/gruff/store/store.rb,
lib/gruff/renderer/dot.rb,
lib/gruff/mini/side_bar.rb,
lib/gruff/renderer/line.rb,
lib/gruff/renderer/text.rb,
lib/gruff/store/xy_data.rb,
lib/gruff/renderer/bezier.rb,
lib/gruff/renderer/circle.rb,
lib/gruff/store/base_data.rb,
lib/gruff/renderer/ellipse.rb,
lib/gruff/renderer/polygon.rb,
lib/gruff/renderer/polyline.rb,
lib/gruff/renderer/renderer.rb,
lib/gruff/store/custom_data.rb,
lib/gruff/renderer/dash_line.rb,
lib/gruff/renderer/rectangle.rb

Overview

Makes a small side bar graph suitable for display at 200px or even smaller.

Here's how to set up a Gruff::Mini::SideBar.

g = Gruff::Mini::SideBar.new
g.title = 'SideBar Graph'
g.labels = {
  0 => '5/6',
  1 => '5/15',
  2 => '5/24',
  3 => '5/30',
}
g.group_spacing = 20
g.data :Art, [0, 5, 8, 15]
g.data :Philosophy, [10, 3, 2, 8]
g.data :Science, [2, 15, 8, 11]
g.write('mini_sidebar.png')

Defined Under Namespace

Modules: Mini, Themes Classes: AccumulatorBar, Area, Bar, Base, Bezier, Bullet, Dot, Histogram, IncorrectNumberOfDatasetsException, Line, Net, PhotoBar, Pie, Scatter, Scene, SideBar, SideStackedBar, Spider, StackedArea, StackedBar

Constant Summary collapse

VERSION =
'0.10.0'