lib/statsample/graph/gdchart.rb in statsample-0.6.2 vs lib/statsample/graph/gdchart.rb in statsample-0.6.3
- old
+ new
@@ -1,8 +1,8 @@
require 'GDChart'
module Statsample
- module Util
+ module Util # :nodoc:
class << self
def chart_gdchart(file,width,height,chart_type, labels, options,num_datasets,data)
require 'GDChart'
gdc=GDChart.new
gdc.title="Generic title"
@@ -16,10 +16,10 @@
gdc.out_graph(width,height,f,chart_type, data.length/num_datasets,labels,num_datasets,data)
}
end
end
end
- class Vector
+ class Vector # :nodoc:
# Creates a barchart using ruby-gdchart
def gdchart_frequencies(file, width=300, height=150, chart_type=GDChart::BAR, options={})
labels,data=[],[]
self.frequencies.sort.each{|k,v|
labels.push(k.to_s)