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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d874486fa11cee97dfcf24eec8fc7fd59d863e2b
4
- data.tar.gz: ee754f9799396f67d33f40089f3456cde0487c67
3
+ metadata.gz: e9920997d912efe6b187a38cdd73c986820f5e03
4
+ data.tar.gz: 79c7fa131050c51b12a6be59270ffb4721cbc2cf
5
5
  SHA512:
6
- metadata.gz: 211ecda3839458dc69f26874a20393c6b558afb12c1caf9354ae4e7b98c470d94d0e38914aaf70be6748f00697da559ef32011bd402c1104736a3f78959d64de
7
- data.tar.gz: 7cb0d35a57e66c08fcab6dfc5bab19291b96fce03b1ccb0493ac26807cf7fe7c5e79bd0c33cd2733706ce4313e85c919a07575697116dd6d26a7ec411ab01ec5
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.0.3)
4
+ svg_charts (1.03)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.2.1)
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.0)
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)
@@ -1,3 +1,3 @@
1
1
  module SVGCharts
2
- VERSION = "1.03"
2
+ VERSION = "1.04"
3
3
  end
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.03'
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-03-14 00:00:00.000000000 Z
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.0
64
+ rubygems_version: 2.0.3
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: Draw charts using SVG.