Class Scruffy::Layers::Average
In: lib/scruffy/layers/average.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::Average

Author:Brasten Sager
Date:August 7th, 2006

An ‘average’ graph. This graph iterates through all the layers and averages all the data at each point, then draws a thick, translucent, shadowy line graph indicating the average values.

This only looks decent in SVG mode. ImageMagick doesn‘t retain the transparency for some reason, creating a massive black line. Any help resolving this would be useful.

Methods

Attributes

layers  [R] 

Public Class methods

Public Instance methods

Render average graph.

Protected Instance methods

Override default generate_coordinates method to iterate through the layers and generate coordinates based on the average data points.

[Validate]