pfsc_gruff 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +117 -0
- data/MIT-LICENSE +21 -0
- data/Manifest.txt +81 -0
- data/README.txt +40 -0
- data/Rakefile +55 -0
- data/assets/bubble.png +0 -0
- data/assets/city_scene/background/0000.png +0 -0
- data/assets/city_scene/background/0600.png +0 -0
- data/assets/city_scene/background/2000.png +0 -0
- data/assets/city_scene/clouds/cloudy.png +0 -0
- data/assets/city_scene/clouds/partly_cloudy.png +0 -0
- data/assets/city_scene/clouds/stormy.png +0 -0
- data/assets/city_scene/grass/default.png +0 -0
- data/assets/city_scene/haze/true.png +0 -0
- data/assets/city_scene/number_sample/1.png +0 -0
- data/assets/city_scene/number_sample/2.png +0 -0
- data/assets/city_scene/number_sample/default.png +0 -0
- data/assets/city_scene/sky/0000.png +0 -0
- data/assets/city_scene/sky/0200.png +0 -0
- data/assets/city_scene/sky/0400.png +0 -0
- data/assets/city_scene/sky/0600.png +0 -0
- data/assets/city_scene/sky/0800.png +0 -0
- data/assets/city_scene/sky/1000.png +0 -0
- data/assets/city_scene/sky/1200.png +0 -0
- data/assets/city_scene/sky/1400.png +0 -0
- data/assets/city_scene/sky/1500.png +0 -0
- data/assets/city_scene/sky/1700.png +0 -0
- data/assets/city_scene/sky/2000.png +0 -0
- data/assets/pc306715.jpg +0 -0
- data/assets/plastik/blue.png +0 -0
- data/assets/plastik/green.png +0 -0
- data/assets/plastik/red.png +0 -0
- data/init.rb +2 -0
- data/lib/gruff.rb +28 -0
- data/lib/gruff/accumulator_bar.rb +27 -0
- data/lib/gruff/area.rb +58 -0
- data/lib/gruff/bar.rb +87 -0
- data/lib/gruff/bar_conversion.rb +46 -0
- data/lib/gruff/base.rb +1123 -0
- data/lib/gruff/bullet.rb +109 -0
- data/lib/gruff/deprecated.rb +39 -0
- data/lib/gruff/dot.rb +113 -0
- data/lib/gruff/line.rb +135 -0
- data/lib/gruff/mini/bar.rb +37 -0
- data/lib/gruff/mini/legend.rb +109 -0
- data/lib/gruff/mini/pie.rb +36 -0
- data/lib/gruff/mini/side_bar.rb +35 -0
- data/lib/gruff/net.rb +140 -0
- data/lib/gruff/photo_bar.rb +100 -0
- data/lib/gruff/pie.rb +126 -0
- data/lib/gruff/scene.rb +209 -0
- data/lib/gruff/side_bar.rb +118 -0
- data/lib/gruff/side_stacked_bar.rb +77 -0
- data/lib/gruff/spider.rb +130 -0
- data/lib/gruff/stacked_area.rb +67 -0
- data/lib/gruff/stacked_bar.rb +57 -0
- data/lib/gruff/stacked_mixin.rb +23 -0
- data/rails_generators/gruff/gruff_generator.rb +63 -0
- data/rails_generators/gruff/templates/controller.rb +32 -0
- data/rails_generators/gruff/templates/functional_test.rb +24 -0
- data/test/gruff_test_case.rb +123 -0
- data/test/test_accumulator_bar.rb +50 -0
- data/test/test_area.rb +134 -0
- data/test/test_bar.rb +321 -0
- data/test/test_base.rb +8 -0
- data/test/test_bullet.rb +26 -0
- data/test/test_dot.rb +273 -0
- data/test/test_legend.rb +68 -0
- data/test/test_line.rb +556 -0
- data/test/test_mini_bar.rb +33 -0
- data/test/test_mini_pie.rb +26 -0
- data/test/test_mini_side_bar.rb +37 -0
- data/test/test_net.rb +230 -0
- data/test/test_photo.rb +41 -0
- data/test/test_pie.rb +154 -0
- data/test/test_scene.rb +100 -0
- data/test/test_side_bar.rb +29 -0
- data/test/test_sidestacked_bar.rb +89 -0
- data/test/test_spider.rb +216 -0
- data/test/test_stacked_area.rb +52 -0
- data/test/test_stacked_bar.rb +52 -0
- metadata +186 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
require File.dirname(__FILE__) + "/gruff_test_case"
|
4
|
+
|
5
|
+
class TestGruffStackedBar < GruffTestCase
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@datasets = [
|
9
|
+
[:Jimmy, [25, 36, 86, 39]],
|
10
|
+
[:Charles, [80, 54, 67, 54]],
|
11
|
+
[:Julie, [22, 29, 35, 38]],
|
12
|
+
]
|
13
|
+
@sample_labels = {
|
14
|
+
0 => '5/6',
|
15
|
+
1 => '5/15',
|
16
|
+
2 => '5/24'
|
17
|
+
}
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_bar_graph
|
22
|
+
g = Gruff::StackedBar.new
|
23
|
+
g.title = "Visual Stacked Bar Graph Test"
|
24
|
+
g.labels = {
|
25
|
+
0 => '5/6',
|
26
|
+
1 => '5/15',
|
27
|
+
2 => '5/24',
|
28
|
+
3 => '5/30',
|
29
|
+
}
|
30
|
+
@datasets.each do |data|
|
31
|
+
g.data(data[0], data[1])
|
32
|
+
end
|
33
|
+
g.write "test/output/stacked_bar_keynote.png"
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
def test_bar_graph_small
|
38
|
+
g = Gruff::StackedBar.new(400)
|
39
|
+
g.title = "Visual Stacked Bar Graph Test"
|
40
|
+
g.labels = {
|
41
|
+
0 => '5/6',
|
42
|
+
1 => '5/15',
|
43
|
+
2 => '5/24',
|
44
|
+
3 => '5/30',
|
45
|
+
}
|
46
|
+
@datasets.each do |data|
|
47
|
+
g.data(data[0], data[1])
|
48
|
+
end
|
49
|
+
g.write "test/output/stacked_bar_keynote_small.png"
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
metadata
ADDED
@@ -0,0 +1,186 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pfsc_gruff
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.6
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Geoffrey Grosenbach
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-06-02 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rubyforge
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.0.3
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: gemcutter
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.5.0
|
34
|
+
version:
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: hoe
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 2.5.0
|
44
|
+
version:
|
45
|
+
description: Beautiful graphs for one or multiple datasets. Can be used on websites or in documents.
|
46
|
+
email: boss@topfunky.com
|
47
|
+
executables: []
|
48
|
+
|
49
|
+
extensions: []
|
50
|
+
|
51
|
+
extra_rdoc_files:
|
52
|
+
- History.txt
|
53
|
+
- Manifest.txt
|
54
|
+
- README.txt
|
55
|
+
files:
|
56
|
+
- History.txt
|
57
|
+
- MIT-LICENSE
|
58
|
+
- Manifest.txt
|
59
|
+
- README.txt
|
60
|
+
- Rakefile
|
61
|
+
- assets/bubble.png
|
62
|
+
- assets/city_scene/background/0000.png
|
63
|
+
- assets/city_scene/background/0600.png
|
64
|
+
- assets/city_scene/background/2000.png
|
65
|
+
- assets/city_scene/clouds/cloudy.png
|
66
|
+
- assets/city_scene/clouds/partly_cloudy.png
|
67
|
+
- assets/city_scene/clouds/stormy.png
|
68
|
+
- assets/city_scene/grass/default.png
|
69
|
+
- assets/city_scene/haze/true.png
|
70
|
+
- assets/city_scene/number_sample/1.png
|
71
|
+
- assets/city_scene/number_sample/2.png
|
72
|
+
- assets/city_scene/number_sample/default.png
|
73
|
+
- assets/city_scene/sky/0000.png
|
74
|
+
- assets/city_scene/sky/0200.png
|
75
|
+
- assets/city_scene/sky/0400.png
|
76
|
+
- assets/city_scene/sky/0600.png
|
77
|
+
- assets/city_scene/sky/0800.png
|
78
|
+
- assets/city_scene/sky/1000.png
|
79
|
+
- assets/city_scene/sky/1200.png
|
80
|
+
- assets/city_scene/sky/1400.png
|
81
|
+
- assets/city_scene/sky/1500.png
|
82
|
+
- assets/city_scene/sky/1700.png
|
83
|
+
- assets/city_scene/sky/2000.png
|
84
|
+
- assets/pc306715.jpg
|
85
|
+
- assets/plastik/blue.png
|
86
|
+
- assets/plastik/green.png
|
87
|
+
- assets/plastik/red.png
|
88
|
+
- init.rb
|
89
|
+
- lib/gruff.rb
|
90
|
+
- lib/gruff/accumulator_bar.rb
|
91
|
+
- lib/gruff/area.rb
|
92
|
+
- lib/gruff/bar.rb
|
93
|
+
- lib/gruff/bar_conversion.rb
|
94
|
+
- lib/gruff/base.rb
|
95
|
+
- lib/gruff/bullet.rb
|
96
|
+
- lib/gruff/deprecated.rb
|
97
|
+
- lib/gruff/dot.rb
|
98
|
+
- lib/gruff/line.rb
|
99
|
+
- lib/gruff/mini/bar.rb
|
100
|
+
- lib/gruff/mini/legend.rb
|
101
|
+
- lib/gruff/mini/pie.rb
|
102
|
+
- lib/gruff/mini/side_bar.rb
|
103
|
+
- lib/gruff/net.rb
|
104
|
+
- lib/gruff/photo_bar.rb
|
105
|
+
- lib/gruff/pie.rb
|
106
|
+
- lib/gruff/scene.rb
|
107
|
+
- lib/gruff/side_bar.rb
|
108
|
+
- lib/gruff/side_stacked_bar.rb
|
109
|
+
- lib/gruff/spider.rb
|
110
|
+
- lib/gruff/stacked_area.rb
|
111
|
+
- lib/gruff/stacked_bar.rb
|
112
|
+
- lib/gruff/stacked_mixin.rb
|
113
|
+
- rails_generators/gruff/gruff_generator.rb
|
114
|
+
- rails_generators/gruff/templates/controller.rb
|
115
|
+
- rails_generators/gruff/templates/functional_test.rb
|
116
|
+
- test/gruff_test_case.rb
|
117
|
+
- test/test_accumulator_bar.rb
|
118
|
+
- test/test_area.rb
|
119
|
+
- test/test_bar.rb
|
120
|
+
- test/test_base.rb
|
121
|
+
- test/test_bullet.rb
|
122
|
+
- test/test_dot.rb
|
123
|
+
- test/test_legend.rb
|
124
|
+
- test/test_line.rb
|
125
|
+
- test/test_mini_bar.rb
|
126
|
+
- test/test_mini_pie.rb
|
127
|
+
- test/test_mini_side_bar.rb
|
128
|
+
- test/test_net.rb
|
129
|
+
- test/test_photo.rb
|
130
|
+
- test/test_pie.rb
|
131
|
+
- test/test_scene.rb
|
132
|
+
- test/test_side_bar.rb
|
133
|
+
- test/test_sidestacked_bar.rb
|
134
|
+
- test/test_spider.rb
|
135
|
+
- test/test_stacked_area.rb
|
136
|
+
- test/test_stacked_bar.rb
|
137
|
+
has_rdoc: true
|
138
|
+
homepage: http://nubyonrails.com/pages/gruff
|
139
|
+
licenses: []
|
140
|
+
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options:
|
143
|
+
- --main
|
144
|
+
- README.txt
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: "0"
|
152
|
+
version:
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: "0"
|
158
|
+
version:
|
159
|
+
requirements: []
|
160
|
+
|
161
|
+
rubyforge_project: gruff
|
162
|
+
rubygems_version: 1.3.5
|
163
|
+
signing_key:
|
164
|
+
specification_version: 3
|
165
|
+
summary: Beautiful graphs for one or multiple datasets.
|
166
|
+
test_files:
|
167
|
+
- test/test_accumulator_bar.rb
|
168
|
+
- test/test_area.rb
|
169
|
+
- test/test_bar.rb
|
170
|
+
- test/test_base.rb
|
171
|
+
- test/test_bullet.rb
|
172
|
+
- test/test_dot.rb
|
173
|
+
- test/test_legend.rb
|
174
|
+
- test/test_line.rb
|
175
|
+
- test/test_mini_bar.rb
|
176
|
+
- test/test_mini_pie.rb
|
177
|
+
- test/test_mini_side_bar.rb
|
178
|
+
- test/test_net.rb
|
179
|
+
- test/test_photo.rb
|
180
|
+
- test/test_pie.rb
|
181
|
+
- test/test_scene.rb
|
182
|
+
- test/test_side_bar.rb
|
183
|
+
- test/test_sidestacked_bar.rb
|
184
|
+
- test/test_spider.rb
|
185
|
+
- test/test_stacked_area.rb
|
186
|
+
- test/test_stacked_bar.rb
|