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: af7f2dacb03275d7904c31811e51ef3a8da4f632
4
- data.tar.gz: 0f9c1e3d8d90e91bf8e5c642e9b478a61b003f5d
3
+ metadata.gz: cd018a8cdcb6cd24889db1254665dbd84623ba36
4
+ data.tar.gz: 9d4e41276c8ba84f1b280517cffebcb2c30c9410
5
5
  SHA512:
6
- metadata.gz: e182b1dfc064ed83565aa2abbd0abc06341ad65d89f975b906ed904e76f0d95414ddd6e8c09d24e9ca9b1500c86f1548ea22461280f02c335a473f43db953065
7
- data.tar.gz: fdb85146ae87527f54d8aa3672502b21df6487a86330f51494ac4eea6a0cae8f0a55963ff5fa137990fb9352937114d1ff411c355fa3cf0398886cb9b2c11ca6
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 @series.mark_maximum? && value_marked == false && value != 0 && value == @series.max
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
- min_marked = apply_marker_to_graph(min_marked, previous_value, previous_x_offset, previous_y, @canvas.theme.min)
70
- min_marked = apply_marker_to_graph(min_marked, this_value, this_x_offset, this_y, @canvas.theme.min)
71
- max_marked = apply_marker_to_graph(max_marked, previous_value, previous_x_offset, previous_y, @canvas.theme.max)
72
- max_marked = apply_marker_to_graph(max_marked, this_value, this_x_offset, this_y, @canvas.theme.max)
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
@@ -1,5 +1,5 @@
1
1
  module Prawn
2
2
  module Graph
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stenhouse