google_otg 1.0.14 → 1.0.15
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.
- data/VERSION +1 -1
- data/google_otg.gemspec +1 -1
- data/lib/google_otg.rb +1 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.15
|
data/google_otg.gemspec
CHANGED
data/lib/google_otg.rb
CHANGED
@@ -21,8 +21,6 @@ module GoogleOtg
|
|
21
21
|
y_labels = [0]
|
22
22
|
data = []
|
23
23
|
|
24
|
-
args[:draw_gchart] = true
|
25
|
-
|
26
24
|
if hits[0].is_a?(Array)
|
27
25
|
shape_markers = [['D','6699CC',0,'-1.0',4],['D','FF9933',1,'-1.0',2],['o','0000ff',0,'-1.0',8],['o','FF6600',1,'-1.0',8]]
|
28
26
|
line_colors = ['6699CC','FF9933']
|
@@ -61,6 +59,7 @@ module GoogleOtg
|
|
61
59
|
:shape_markers => shape_markers,
|
62
60
|
:data => data,
|
63
61
|
:axis_with_labels => axis_with_labels,
|
62
|
+
:max_value => y_labels[y_labels.length - 1],
|
64
63
|
:legend => legend,
|
65
64
|
:axis_labels => axis_labels,
|
66
65
|
:line_colors => line_colors)
|
@@ -277,7 +276,6 @@ eos
|
|
277
276
|
max_y = args.has_key?(:max_y) ? (args[:max_y] > max_y ? args[:max_y] : max_y) : max_y
|
278
277
|
|
279
278
|
top_y = self.flto10(max_y) + 10
|
280
|
-
top_y = max_y if top_y == 10 && args[:draw_gchart]
|
281
279
|
mid_y = self.flto10(top_y / 2)
|
282
280
|
y_labels = y_label_fn.call(mid_y, top_y)
|
283
281
|
## end y axis labels ##
|