rbgct 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,13 +50,9 @@ module Rbgct::Charts
50
50
  end
51
51
  end
52
52
 
53
- def max_value
54
- @max_value ||= data.map(&:"#{y_method}").flatten.max
55
- end
56
-
57
53
  def set_default_values
58
- @width ||= DEFAULT_WIDTH
59
- @height ||= DEFAULT_HEIGHT
54
+ @width ||= DEFAULT_WIDTH
55
+ @height ||= DEFAULT_HEIGHT
60
56
  end
61
57
 
62
58
  end
@@ -9,8 +9,12 @@ module Rbgct::Charts
9
9
 
10
10
  def initialize(data, opts)
11
11
  @data = data
12
+
12
13
  opts.each{ |method,arg| self.send("#{method}=",arg) if self.respond_to?(method)}
13
14
  opts[:chart_options].each{ |method,arg| self.send("#{method}=",arg) if self.respond_to?(method)}
15
+
16
+ @max_value = data.map(&:"#{y_method}").flatten.max
17
+
14
18
  set_default_values # in Chart
15
19
  end
16
20
 
data/lib/rbgct/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbgct
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbgct
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Emanuele Tozzato