Class SVG::Graph::BarBase
In: temp/Graph/BarBase.rb
Parent: SVG::Graph::Graph

Synopsis

A superclass for bar-style graphs. Do not attempt to instantiate directly; use one of the subclasses instead.

Author

Sean E. Russell <serATgermaneHYPHENsoftwareDOTcom>

Copyright 2004 Sean E. Russell This software is available under the Ruby license

Methods
new    set_defaults   
Attributes
bar_gap  [RW] 

Whether to have a gap between the bars or not, default is true, set to false if you don’t want gaps.

stack  [RW] 

How to stack data sets. :overlap overlaps bars with transparent colors, :top stacks bars on top of one another, :side stacks the bars side-by-side. Defaults to :overlap.

Public Class methods
new(config)

Ensures that :fields are provided in the configuration.

Public Instance methods
set_defaults()

In addition to the defaults set in Graph::initialize, sets

bar_gap
true
stack
:overlap