Class: MetricFu::RcovGchartGrapher

Inherits:
RcovGrapher 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 RcovGrapher

#labels, #rcov_percent

Instance Method Summary collapse

Methods inherited from RcovGrapher

#get_metrics, #initialize

Methods inherited from Grapher

#initialize, require_graphing_gem

Methods included from GchartGrapher

#determine_y_axis_scale

Constructor Details

This class inherits a constructor from MetricFu::RcovGrapher

Instance Method Details

#graph!Object



68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/graphs/engines/gchart.rb', line 68

def graph!
  url = Gchart.line(
    :size => GCHART_GRAPH_SIZE,
    :title => URI.escape("Rcov: code coverage"),
    :data => self.rcov_percent,
    :max_value => 101,
    :axis_with_labels => 'x,y',
    :axis_labels => [self.labels.values, [0,20,40,60,80,100]],
    :format => 'file',
    :filename => File.join(MetricFu.output_directory, 'rcov.png')
  )
end