Class: MetricFu::StatsGchartGrapher
- Inherits:
-
StatsGrapher
- Object
- Grapher
- StatsGrapher
- MetricFu::StatsGchartGrapher
- 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 StatsGrapher
#labels, #loc_counts, #lot_counts
Instance Method Summary collapse
Methods inherited from StatsGrapher
Methods inherited from Grapher
#initialize, require_graphing_gem
Methods included from GchartGrapher
Constructor Details
This class inherits a constructor from MetricFu::StatsGrapher
Instance Method Details
#graph! ⇒ Object
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/graphs/engines/gchart.rb', line 122 def graph! determine_y_axis_scale(@loc_counts + @lot_counts) url = Gchart.line( :size => GCHART_GRAPH_SIZE, :title => URI.escape("Stats: LOC & LOT"), :data => [@loc_counts, @lot_counts], :bar_colors => COLORS[0..1], :legend => ['Lines of code', 'Lines of test'], :custom => "chdlp=t", :max_value => @max_value, :axis_with_labels => 'x,y', :axis_labels => [@labels.values, @yaxis], :format => 'file', :filename => File.join(MetricFu.output_directory, 'stats.png')) end |