Sha256: ef67150d841e60b0e4fedff028432a20a9d7760e937c52344bc8ddd7682fd821

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

MetricFu.metrics_require   { 'stats/stats_grapher' }
module MetricFu
  class StatsBluffGrapher < StatsGrapher
    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 = #{MultiJson.dump(@labels)};
        g.draw();
      EOS
      File.open(File.join(MetricFu.output_directory, 'stats.js'), 'w') {|f| f << content }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metric_fu-4.2.1 lib/metric_fu/metrics/stats/stats_bluff_grapher.rb