Class Scruffy::Layers::AllSmiles
In: lib/scruffy/layers/all_smiles.rb
Parent: Base

Scruffy::Layers::AllSmiles

Author:Brasten Sager
Date:August 8th, 2006

The AllSmiles graph consists of smiley faces for data points, with smiles or frowns depending upon their relative location on the graph. The highest point is crowned with a wizard hat. The Wizard Smiley eventually become ‘Scruffy’, our mascot.

I don‘t know why.

This graph only looks decent in SVG mode. If you‘re rasterizing the graph with ImageMagick, you must use the :complexity => :minimal option on Graph#render. This will make the graph look really nasty, but still better than if you try to rasterize with all the gradients in place.

Methods

draw   new   scaled  

Attributes

standalone  [RW] 

Public Class methods

Returns a new AllSmiles graph.

Options:

standalone:If set to true, dashed lines under smilies run vertically, like bar graphs. If false (default), dashed lines run from smiley to smiley, like a line-graph.

Public Instance methods

Legacy (4 days old). Removed scaled from layout engine, changed to relative, with different math involved. Translate here so I don‘t have to entirely redo this graph.

[Validate]