svg_charts 1.03 → 1.04
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/charts/line.rb +1 -1
- data/lib/charts/version.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: e9920997d912efe6b187a38cdd73c986820f5e03
|
4
|
+
data.tar.gz: 79c7fa131050c51b12a6be59270ffb4721cbc2cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf9df50976608b2a741c768dc0fd3358fb7c205c5454912595d4f4d46946132c54eda5b1e50dd20f759e56570021f409ccf33c9c3949f85cc471c560f62a4694
|
7
|
+
data.tar.gz: 20aa4daebd225210fc5fffa7f4f4883d9919edcfa7f75c376b50706aa28e4f075891736c0873ac8748817e1b7bbd9004968046ae16670cb04193d30e6037a519
|
data/Gemfile.lock
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
svg_charts (1.
|
4
|
+
svg_charts (1.03)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: http://rubygems.org/
|
8
8
|
specs:
|
9
|
-
diff-lcs (1.2.
|
9
|
+
diff-lcs (1.2.4)
|
10
10
|
rspec (2.13.0)
|
11
11
|
rspec-core (~> 2.13.0)
|
12
12
|
rspec-expectations (~> 2.13.0)
|
@@ -14,7 +14,7 @@ GEM
|
|
14
14
|
rspec-core (2.13.1)
|
15
15
|
rspec-expectations (2.13.0)
|
16
16
|
diff-lcs (>= 1.1.3, < 2.0)
|
17
|
-
rspec-mocks (2.13.
|
17
|
+
rspec-mocks (2.13.1)
|
18
18
|
|
19
19
|
PLATFORMS
|
20
20
|
ruby
|
data/lib/charts/line.rb
CHANGED
@@ -121,7 +121,7 @@ module SVGCharts
|
|
121
121
|
@coordinates = []
|
122
122
|
|
123
123
|
y_positions = (@height - @y_retreat)/data.max
|
124
|
-
x_positions = @width/data.size
|
124
|
+
x_positions = (@width - (@x_retreat * 2))/(data.size - 1)
|
125
125
|
|
126
126
|
data.each_with_index do |value, i|
|
127
127
|
x1 = @x_retreat + (x_positions * i)
|
data/lib/charts/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svg_charts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.04'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rogério Zambon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
61
|
version: '0'
|
62
62
|
requirements: []
|
63
63
|
rubyforge_project:
|
64
|
-
rubygems_version: 2.0.
|
64
|
+
rubygems_version: 2.0.3
|
65
65
|
signing_key:
|
66
66
|
specification_version: 4
|
67
67
|
summary: Draw charts using SVG.
|