svg-graph 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +6 -0
- data/lib/SVG/Graph/Pie.rb +2 -1
- data/lib/svggraph.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b402bac1f075fc4fc1a67ffcdc113f39594c80a
|
4
|
+
data.tar.gz: c1eceab98a933da3ff83e28dca1d7dfa68327600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed49ba27640773bad9f5c1f2853c134e882e3ebb373df57a32f9fcf63532ad01aa7f4255e4b9bedb2ad0dde4e08393d77359185bcaed8f961d2b4d594ed6f93f
|
7
|
+
data.tar.gz: a5c059786637278c40f686a14661e5a94ebcebbd7d0ebe969d9d5e383aa6bdcb9da47ac96573e3f4f525e8b52510a1056a169c75b66d4d2439c8a9b664b545d9
|
data/History.txt
CHANGED
@@ -2,6 +2,12 @@ TODO / Backlog
|
|
2
2
|
* add unit tests for all types of graphs
|
3
3
|
* refactor various hardcoded constant pixel offsets in Graph class to use named constants or variables
|
4
4
|
|
5
|
+
=== 2.1.2 / 2017-02-26
|
6
|
+
* show_key_actual_values in pie chart lets user chose to show values in key [thanks olegsfinest, pull request #5]
|
7
|
+
|
8
|
+
=== 2.1.1 / 2017-02-26
|
9
|
+
* Bar graphs are rounding bars to nearest Y axis label number [thanks adamalbrecht, pull request #4]
|
10
|
+
|
5
11
|
=== 2.1.0 / 2017-02-26 [lumean]
|
6
12
|
* [#2] change behavior for number format, Strings axis labels will never be formatted
|
7
13
|
previously, when containing numbers they were formatted with the number_format template
|
data/lib/SVG/Graph/Pie.rb
CHANGED
@@ -187,7 +187,8 @@ module SVG
|
|
187
187
|
count += 1
|
188
188
|
v = @data[count]
|
189
189
|
perc = show_key_percent ? " "+(v * percent_scale).round.to_s+"%" : ""
|
190
|
-
|
190
|
+
val = show_key_actual_values ? " [" + v.to_s + "]" : ""
|
191
|
+
x + val + perc
|
191
192
|
}
|
192
193
|
end
|
193
194
|
|
data/lib/svggraph.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svg-graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Russell
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-12-10 00:00:00.000000000 Z
|
16
16
|
dependencies: []
|
17
17
|
description: "Gem version of SVG:::Graph. SVG:::Graph is a pure Ruby library for generating
|
18
18
|
charts, \nwhich are a type of graph where the values of one axis are not scalar.
|
@@ -72,7 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
74
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.6.
|
75
|
+
rubygems_version: 2.6.10
|
76
76
|
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: SVG:::Graph is a pure Ruby library for generating charts, which are a type
|