Class Scruffy::Layers::AllSmiles
In: lib/scruffy/layers/all_smiles.rb
Parent: Base
Graph Pie Stacked Base ValueMarkers Legend Label Graphs Title Grid Background DataMarkers StyleInfo Viewport Base Empty Standard Cubed3d Cubed Split Pie Sparkline Reversed StandardError RenderError Base AllSmiles Area SparklineBar PieSlice Average Scatter Bar Line Base Number Percentage Currency Custom Base Tulips Vitamins CareBears Apples RubyBlog Mephisto Keynote GraphState BatikRasterizer RMagickRasterizer Components Rasterizers Renderers LayerContainer Hash Array PointContainer Canvas Helpers VERSION Layers Formatters Themes Scruffy dot/f_4.png

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]