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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a522ee6da8f411c886cf522dca6e8ab1a6e6dc4b
4
- data.tar.gz: 917c7446f2d06edc9ba644948d17f3cb63f3e446
3
+ metadata.gz: 2b402bac1f075fc4fc1a67ffcdc113f39594c80a
4
+ data.tar.gz: c1eceab98a933da3ff83e28dca1d7dfa68327600
5
5
  SHA512:
6
- metadata.gz: 149a97802da1b358eb5fa43d77066c3c1950b644dcc5ae817f360c64b3045ea7d56505590fa0bd4144c22e342829c0e1bda59a3960b4557d2e52172a18f5a608
7
- data.tar.gz: bfe772c7f4b72975960645206f3283250878c9d83da249c237b9baf4eca0d8b79ba5107acaa189c9f455c7e05709343666372bdd583c950e6fa74cd6e0713925
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
- x + " [" + v.to_s + "]" + perc
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
@@ -1,6 +1,6 @@
1
1
  module SVG
2
2
  module Graph
3
- VERSION = '2.1.1'
3
+ VERSION = '2.1.2'
4
4
  end
5
5
  end
6
6
  require_relative 'SVG/Graph/DataPoint'
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.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-09-25 00:00:00.000000000 Z
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.12
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