prawn-graph 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd018a8cdcb6cd24889db1254665dbd84623ba36
|
4
|
+
data.tar.gz: 9d4e41276c8ba84f1b280517cffebcb2c30c9410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70e6bb7ca34bbe7c843e19f700fe14ba4b998c39ba0f65401d5c508a8a665eb73834dbecf4b6f7675921427e01ce39d755c6993256b95ecbf06f5d3e377aeab0
|
7
|
+
data.tar.gz: d5b799cb11c5e1f528dc1cbdb67c19e2f921345ffc947a8da714fbc3f7e4543f99284ca5cfa6ca1e9d2642feb70124a7e3a68150beb18ecc97e8f4b0c3e26b37
|
@@ -14,7 +14,7 @@ module Prawn
|
|
14
14
|
private
|
15
15
|
|
16
16
|
def apply_marker_to_graph(value_marked, value, x, y, color)
|
17
|
-
if
|
17
|
+
if value_marked == false && value != 0 && value == @series.max
|
18
18
|
draw_marker_point(color, x, y)
|
19
19
|
value_marked = true
|
20
20
|
end
|
@@ -66,10 +66,15 @@ module Prawn
|
|
66
66
|
prawn.fill_ellipse([ ( this_x_offset), this_y ], 1)
|
67
67
|
end
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
69
|
+
if @series.mark_minimum?
|
70
|
+
min_marked = apply_marker_to_graph(min_marked, previous_value, previous_x_offset, previous_y, @canvas.theme.min)
|
71
|
+
min_marked = apply_marker_to_graph(min_marked, this_value, this_x_offset, this_y, @canvas.theme.min)
|
72
|
+
end
|
73
|
+
|
74
|
+
if @series.mark_maximum?
|
75
|
+
max_marked = apply_marker_to_graph(max_marked, previous_value, previous_x_offset, previous_y, @canvas.theme.max)
|
76
|
+
max_marked = apply_marker_to_graph(max_marked, this_value, this_x_offset, this_y, @canvas.theme.max)
|
77
|
+
end
|
73
78
|
|
74
79
|
j += 1
|
75
80
|
end
|
data/lib/prawn/graph/version.rb
CHANGED