Class: MetricFu::StatsBluffGrapher
- Inherits:
-
StatsGrapher
- Object
- Grapher
- StatsGrapher
- MetricFu::StatsBluffGrapher
- Defined in:
- lib/graphs/engines/bluff.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
Attributes inherited from Grapher
Instance Method Summary collapse
Methods inherited from StatsGrapher
Methods inherited from Grapher
#get_metrics, #initialize, require_graphing_gem
Methods included from GchartGrapher
Constructor Details
This class inherits a constructor from MetricFu::StatsGrapher
Instance Method Details
#graph! ⇒ Object
88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/graphs/engines/bluff.rb', line 88 def graph! content = <<-EOS #{BLUFF_DEFAULT_OPTIONS} g.title = 'Stats: LOC & LOT'; g.data('LOC', [#{@loc_counts.join(',')}]); g.data('LOT', [#{@lot_counts.join(',')}]) g.labels = #{@labels.to_json}; g.draw(); EOS File.open(File.join(MetricFu.output_directory, 'stats.js'), 'w') {|f| f << content } end |