seer 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/seer/line_chart.rb +4 -2
- metadata +4 -4
data/lib/seer/line_chart.rb
CHANGED
@@ -68,8 +68,10 @@ module Seer
|
|
68
68
|
def data_columns #:nodoc:
|
69
69
|
_data_columns = " data.addRows(#{data_rows.size});\r"
|
70
70
|
_data_columns << " data.addColumn('string', 'Date');\r"
|
71
|
-
data.
|
72
|
-
_data_columns << " data.addColumn('number', '#{datum.send(series_label)}');\r"
|
71
|
+
if data.first.respond_to?(series_label)
|
72
|
+
data.each{ |datum| _data_columns << " data.addColumn('number', '#{datum.send(series_label)}');\r" }
|
73
|
+
else
|
74
|
+
data.each{ |datum| _data_columns << " data.addColumn('number', '#{series_label}');\r" }
|
73
75
|
end
|
74
76
|
_data_columns
|
75
77
|
end
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 7
|
8
|
+
- 0
|
9
|
+
version: 0.7.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Corey Ehmke / SEO Logic
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-05-11 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|