lib/flotr.rb in pbosetti-flotr-1.2.1 vs lib/flotr.rb in pbosetti-flotr-1.3
- old
+ new
@@ -13,10 +13,12 @@
end
end
module Flotr
BASENAME = File.dirname(__FILE__)
+ OUTPUT_FILE = "flotr.html"
+ STD_TEMPLATE = "zooming.rhtml"
class Data
OPTIONS = [:color, :label, :lines, :bars, :points, :hints, :shadowSize]
attr_accessor *OPTIONS
attr_accessor :data
@@ -47,17 +49,16 @@
end
end
class Plot
- OUTPUT_FILE = "flotr.html"
attr_accessor :series, :title, :comment, :template, :options
attr_accessor :width, :height
attr_accessor :label, :xlim, :ylim
def initialize(title = "Flotr Plot")
@title = title
- @template = "#{BASENAME}/interacting.rhtml"
+ @template = "#{BASENAME}/#{STD_TEMPLATE}"
@series = []
@options = {}
@width, @height = 600, 300
@label = @xlim = @ylim = {}
end