prawn-graph 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prawn/graph/chart_components/series_renderer.rb +33 -2
- data/lib/prawn/graph/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33dd1aa4f0429ff97c4b3884a7015e9953fab007
|
4
|
+
data.tar.gz: 6dc03f1716e431ff2f5a77c3ad537812d78ca1da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 729c459c07fa3c2be69f5b0b914e53834432b23d5255ca73efe983d4ff8728e3dc444d76b71e40005dfe9b8587d574988fc3172a4ca40be48e3076c56ed6fd73
|
7
|
+
data.tar.gz: e1b4d17c28db4d882471cae5fe286624055fe863eb6b4eebaac4148a8900de89e6c435988925cb0ad6cc939965d34bd3f719c6b9563baf5baee7a70f566874ad
|
@@ -63,7 +63,7 @@ module Prawn
|
|
63
63
|
prawn.fill_ellipse([ ( previous_x_offset), previous_y ], 1)
|
64
64
|
prawn.fill_ellipse([ ( this_x_offset), this_y ], 1)
|
65
65
|
|
66
|
-
if @series.mark_minimum? && min_marked == false && previous_value == @series.min
|
66
|
+
if @series.mark_minimum? && min_marked == false && previous_value != 0 && previous_value == @series.min
|
67
67
|
prawn.save_graphics_state do
|
68
68
|
prawn.fill_color = @canvas.theme.min
|
69
69
|
prawn.stroke_color = @canvas.theme.min
|
@@ -78,7 +78,7 @@ module Prawn
|
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
|
-
if @series.mark_maximum? && max_marked == false && previous_value == @series.max
|
81
|
+
if @series.mark_maximum? && max_marked == false && previous_value != 0 && previous_value == @series.max
|
82
82
|
prawn.save_graphics_state do
|
83
83
|
prawn.fill_color = @canvas.theme.max
|
84
84
|
prawn.stroke_color = @canvas.theme.max
|
@@ -92,6 +92,37 @@ module Prawn
|
|
92
92
|
max_marked = true
|
93
93
|
end
|
94
94
|
end
|
95
|
+
|
96
|
+
|
97
|
+
if @series.mark_minimum? && min_marked == false && this_value != 0 && this_value == @series.min
|
98
|
+
prawn.save_graphics_state do
|
99
|
+
prawn.fill_color = @canvas.theme.min
|
100
|
+
prawn.stroke_color = @canvas.theme.min
|
101
|
+
prawn.line_width = 1
|
102
|
+
|
103
|
+
prawn.dash(2)
|
104
|
+
prawn.stroke_line([this_x_offset, 0], [this_x_offset, this_y])
|
105
|
+
prawn.undash
|
106
|
+
|
107
|
+
prawn.fill_ellipse([ ( this_x_offset), this_y ], 2)
|
108
|
+
min_marked = true
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
if @series.mark_maximum? && max_marked == false && this_value != 0 && this_value == @series.max
|
113
|
+
prawn.save_graphics_state do
|
114
|
+
prawn.fill_color = @canvas.theme.max
|
115
|
+
prawn.stroke_color = @canvas.theme.max
|
116
|
+
prawn.line_width = 1
|
117
|
+
|
118
|
+
prawn.dash(2)
|
119
|
+
prawn.stroke_line([this_x_offset, 0], [this_x_offset, this_y])
|
120
|
+
prawn.undash
|
121
|
+
|
122
|
+
prawn.fill_ellipse([ ( this_x_offset), this_y ], 2)
|
123
|
+
max_marked = true
|
124
|
+
end
|
125
|
+
end
|
95
126
|
j += 1
|
96
127
|
end
|
97
128
|
|
data/lib/prawn/graph/version.rb
CHANGED
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: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stenhouse
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|