Class: MetricFu::RoodiGchartGrapher

Inherits:
RoodiGrapher show all
Defined in:
lib/graphs/engines/gchart.rb

Constant Summary

Constants inherited from Grapher

Grapher::BLUFF_DEFAULT_OPTIONS, Grapher::BLUFF_GRAPH_SIZE

Constants included from GchartGrapher

GchartGrapher::COLORS, GchartGrapher::GCHART_GRAPH_SIZE, GchartGrapher::NUMBER_OF_TICKS

Instance Attribute Summary

Attributes inherited from RoodiGrapher

#roodi_count

Attributes inherited from Grapher

#labels

Instance Method Summary collapse

Methods inherited from RoodiGrapher

#get_metrics, #initialize

Methods inherited from Grapher

#get_metrics, #initialize, require_graphing_gem

Methods included from GchartGrapher

#determine_y_axis_scale

Constructor Details

This class inherits a constructor from MetricFu::RoodiGrapher

Instance Method Details

#graph!Object



107
108
109
110
111
112
113
114
115
116
117
118
# File 'lib/graphs/engines/gchart.rb', line 107

def graph!
  determine_y_axis_scale(@roodi_count)
  url = Gchart.line(
    :size => GCHART_GRAPH_SIZE,
    :title => URI.escape("Roodi: potential design problems"),
    :data => @roodi_count,
    :max_value => @max_value,
    :axis_with_labels => 'x,y',
    :axis_labels => [@labels.values, @yaxis],
    :format => 'file',
    :filename => File.join(MetricFu.output_directory, 'roodi.png'))
end