Method: MetricFu::Grapher#graph!

Defined in:
lib/metric_fu/reporting/graphs/grapher.rb

#graph!Object



32
33
34
35
36
37
38
39
40
# File 'lib/metric_fu/reporting/graphs/grapher.rb', line 32

def graph!
  labels = MultiJson.dump(@labels)
  content = <<-EOS
    var graph_title = '#{title}';
    #{build_data(data)}
    var graph_labels = #{labels};
  EOS
  File.open(File.join(output_directory, "results", output_filename), "w") { |f| f << content }
end