lilygraph 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/lilygraph.rb +8 -1
- data/lilygraph.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.7
|
data/lib/lilygraph.rb
CHANGED
@@ -22,6 +22,7 @@ class Lilygraph
|
|
22
22
|
:legend => :right,
|
23
23
|
:bar_text => :number,
|
24
24
|
:type => :bar,
|
25
|
+
:padding => false,
|
25
26
|
:viewbox => {
|
26
27
|
:width => 800,
|
27
28
|
:height => 600
|
@@ -299,7 +300,13 @@ class Lilygraph
|
|
299
300
|
end
|
300
301
|
|
301
302
|
def max
|
302
|
-
|
303
|
+
if @options[:padding]
|
304
|
+
temp_max = (data_max + [division / 10, 1].max)
|
305
|
+
else
|
306
|
+
temp_max = data_max
|
307
|
+
end
|
308
|
+
|
309
|
+
((temp_max / Float(division)).ceil * Float(division)).round
|
303
310
|
end
|
304
311
|
|
305
312
|
def graph_height
|
data/lilygraph.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lilygraph}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Christopher Giroir"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-10-05}
|
13
13
|
s.description = %q{Lilygraph is a Ruby library for creating svg charts and graphs based on XmlBuilder.}
|
14
14
|
s.email = %q{kelsin@valefor.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lilygraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Giroir
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-10-05 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|