gruff 0.5.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +14 -0
- data/.github/ISSUE_TEMPLATE.md +18 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +109 -0
- data/.rubocop_todo.yml +130 -0
- data/.travis.yml +24 -12
- data/.yardopts +1 -0
- data/{History.txt → CHANGELOG.md} +61 -25
- data/Gemfile +3 -7
- data/README.md +57 -25
- data/Rakefile +6 -201
- data/assets/plastik/blue.png +0 -0
- data/assets/plastik/green.png +0 -0
- data/assets/plastik/red.png +0 -0
- data/docker/Dockerfile +14 -0
- data/docker/build.sh +4 -0
- data/docker/launch.sh +4 -0
- data/gruff.gemspec +19 -14
- data/init.rb +2 -0
- data/lib/gruff.rb +26 -2
- data/lib/gruff/accumulator_bar.rb +18 -8
- data/lib/gruff/area.rb +33 -19
- data/lib/gruff/bar.rb +76 -45
- data/lib/gruff/base.rb +337 -613
- data/lib/gruff/bezier.rb +34 -19
- data/lib/gruff/bullet.rb +51 -62
- data/lib/gruff/dot.rb +38 -62
- data/lib/gruff/helper/bar_conversion.rb +47 -0
- data/lib/gruff/helper/bar_value_label_mixin.rb +30 -0
- data/lib/gruff/helper/stacked_mixin.rb +23 -0
- data/lib/gruff/histogram.rb +59 -0
- data/lib/gruff/line.rb +130 -150
- data/lib/gruff/mini/bar.rb +17 -10
- data/lib/gruff/mini/legend.rb +24 -36
- data/lib/gruff/mini/pie.rb +18 -12
- data/lib/gruff/mini/side_bar.rb +26 -12
- data/lib/gruff/net.rb +60 -84
- data/lib/gruff/patch/rmagick.rb +33 -0
- data/lib/gruff/patch/string.rb +10 -0
- data/lib/gruff/photo_bar.rb +27 -30
- data/lib/gruff/pie.rb +190 -93
- data/lib/gruff/renderer/bezier.rb +21 -0
- data/lib/gruff/renderer/circle.rb +21 -0
- data/lib/gruff/renderer/dash_line.rb +22 -0
- data/lib/gruff/renderer/dot.rb +39 -0
- data/lib/gruff/renderer/ellipse.rb +21 -0
- data/lib/gruff/renderer/line.rb +34 -0
- data/lib/gruff/renderer/polygon.rb +23 -0
- data/lib/gruff/renderer/polyline.rb +21 -0
- data/lib/gruff/renderer/rectangle.rb +19 -0
- data/lib/gruff/renderer/renderer.rb +127 -0
- data/lib/gruff/renderer/text.rb +42 -0
- data/lib/gruff/scatter.rb +156 -180
- data/lib/gruff/scene.rb +31 -41
- data/lib/gruff/side_bar.rb +77 -63
- data/lib/gruff/side_stacked_bar.rb +77 -60
- data/lib/gruff/spider.rb +37 -50
- data/lib/gruff/stacked_area.rb +32 -30
- data/lib/gruff/stacked_bar.rb +87 -49
- data/lib/gruff/store/base_data.rb +34 -0
- data/lib/gruff/store/custom_data.rb +34 -0
- data/lib/gruff/store/store.rb +80 -0
- data/lib/gruff/store/xy_data.rb +55 -0
- data/lib/gruff/themes.rb +32 -33
- data/lib/gruff/version.rb +3 -1
- metadata +99 -92
- data/Manifest.txt +0 -81
- data/RELEASE.md +0 -30
- 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/lib/gruff/bar_conversion.rb +0 -46
- data/lib/gruff/deprecated.rb +0 -39
- data/lib/gruff/stacked_mixin.rb +0 -23
- data/test/gruff_test_case.rb +0 -154
- data/test/image_compare.rb +0 -58
- data/test/test_accumulator_bar.rb +0 -51
- data/test/test_area.rb +0 -134
- data/test/test_bar.rb +0 -505
- data/test/test_base.rb +0 -8
- data/test/test_bezier.rb +0 -33
- data/test/test_bullet.rb +0 -26
- data/test/test_dot.rb +0 -263
- data/test/test_legend.rb +0 -68
- data/test/test_line.rb +0 -657
- data/test/test_mini_bar.rb +0 -33
- data/test/test_mini_pie.rb +0 -25
- data/test/test_mini_side_bar.rb +0 -36
- data/test/test_net.rb +0 -231
- data/test/test_photo.rb +0 -41
- data/test/test_pie.rb +0 -154
- data/test/test_scatter.rb +0 -233
- data/test/test_scene.rb +0 -100
- data/test/test_side_bar.rb +0 -56
- data/test/test_sidestacked_bar.rb +0 -105
- data/test/test_spider.rb +0 -226
- data/test/test_stacked_area.rb +0 -52
- data/test/test_stacked_bar.rb +0 -52
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gruff
|
4
|
+
class Store
|
5
|
+
attr_reader :data, :norm_data
|
6
|
+
|
7
|
+
def initialize(data_class)
|
8
|
+
@data_class = data_class
|
9
|
+
@data = []
|
10
|
+
@norm_data = []
|
11
|
+
@normalized = false
|
12
|
+
end
|
13
|
+
|
14
|
+
def add(*args)
|
15
|
+
@data << @data_class.new(*args)
|
16
|
+
end
|
17
|
+
|
18
|
+
def normalize(args = {})
|
19
|
+
unless @normalized
|
20
|
+
@data.each do |data_row|
|
21
|
+
@norm_data << data_row.normalize(args)
|
22
|
+
end
|
23
|
+
|
24
|
+
@normalized = true
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def empty?
|
29
|
+
@data.empty?
|
30
|
+
end
|
31
|
+
|
32
|
+
def length
|
33
|
+
@data.length
|
34
|
+
end
|
35
|
+
|
36
|
+
def columns
|
37
|
+
@columns ||= @data.empty? ? 0 : @data.map(&:columns).max
|
38
|
+
end
|
39
|
+
|
40
|
+
def min
|
41
|
+
@min ||= @data.map(&:min).compact.min
|
42
|
+
end
|
43
|
+
alias min_y min
|
44
|
+
|
45
|
+
def max
|
46
|
+
@max ||= @data.map(&:max).compact.max
|
47
|
+
end
|
48
|
+
alias max_y max
|
49
|
+
|
50
|
+
def min_x
|
51
|
+
@min_x ||= @data.map(&:min_x).compact.min
|
52
|
+
end
|
53
|
+
|
54
|
+
def max_x
|
55
|
+
@max_x ||= @data.map(&:max_x).compact.max
|
56
|
+
end
|
57
|
+
|
58
|
+
def sort_data!
|
59
|
+
@data = @data.sort_by { |a| -a.points.reduce(0) { |acc, elem| acc + elem.to_f } }
|
60
|
+
end
|
61
|
+
|
62
|
+
def sort_norm_data!
|
63
|
+
@norm_data = @norm_data.sort_by { |a| -a.points.reduce(0) { |acc, elem| acc + elem.to_f } }
|
64
|
+
end
|
65
|
+
|
66
|
+
def reverse!
|
67
|
+
@data.reverse!
|
68
|
+
end
|
69
|
+
|
70
|
+
def change_colors(colors)
|
71
|
+
index = 0
|
72
|
+
@data.each do |data_row|
|
73
|
+
data_row.color ||= begin
|
74
|
+
index = (index + 1) % colors.length
|
75
|
+
colors[index - 1]
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gruff
|
4
|
+
class Store
|
5
|
+
class XYData < Struct.new(:label, :y_points, :color, :x_points)
|
6
|
+
def initialize(label, y_points, color, x_points = nil)
|
7
|
+
self.label = label.to_s
|
8
|
+
self.y_points = Array(y_points)
|
9
|
+
self.color = color
|
10
|
+
self.x_points = Array(x_points) if x_points
|
11
|
+
end
|
12
|
+
|
13
|
+
def x_points
|
14
|
+
self[:x_points] || Array.new(y_points.length)
|
15
|
+
end
|
16
|
+
|
17
|
+
def coordinates
|
18
|
+
x_points.zip(y_points)
|
19
|
+
end
|
20
|
+
|
21
|
+
def columns
|
22
|
+
y_points.length
|
23
|
+
end
|
24
|
+
|
25
|
+
def min
|
26
|
+
y_points.compact.min
|
27
|
+
end
|
28
|
+
alias min_y min
|
29
|
+
|
30
|
+
def max
|
31
|
+
y_points.compact.max
|
32
|
+
end
|
33
|
+
alias max_y max
|
34
|
+
|
35
|
+
def min_x
|
36
|
+
x_points.compact.min
|
37
|
+
end
|
38
|
+
|
39
|
+
def max_x
|
40
|
+
x_points.compact.max
|
41
|
+
end
|
42
|
+
|
43
|
+
def normalize(args = {})
|
44
|
+
norm_x_points = x_points.map do |x|
|
45
|
+
x.nil? ? nil : (x.to_f - args[:minimum_x].to_f) / args[:spread_x]
|
46
|
+
end
|
47
|
+
norm_y_points = y_points.map do |y|
|
48
|
+
y.nil? ? nil : (y.to_f - args[:minimum_y].to_f) / args[:spread_y]
|
49
|
+
end
|
50
|
+
|
51
|
+
self.class.new(label, norm_y_points, color, norm_x_points)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/lib/gruff/themes.rb
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Gruff
|
2
4
|
module Themes
|
3
|
-
|
4
5
|
# A color scheme similar to the popular presentation software.
|
5
6
|
KEYNOTE = {
|
6
|
-
:
|
7
|
+
colors: [
|
7
8
|
'#FDD84E', # yellow
|
8
9
|
'#6886B4', # blue
|
9
10
|
'#72AE6E', # green
|
@@ -12,14 +13,14 @@ module Gruff
|
|
12
13
|
'#EFAA43', # orange
|
13
14
|
'white'
|
14
15
|
],
|
15
|
-
:
|
16
|
-
:
|
17
|
-
:
|
16
|
+
marker_color: 'white',
|
17
|
+
font_color: 'white',
|
18
|
+
background_colors: %w[black #4a465a]
|
18
19
|
}
|
19
20
|
|
20
21
|
# A color scheme plucked from the colors on the popular usability blog.
|
21
22
|
THIRTYSEVEN_SIGNALS = {
|
22
|
-
:
|
23
|
+
colors: [
|
23
24
|
'#FFF804', # yellow
|
24
25
|
'#336699', # blue
|
25
26
|
'#339933', # green
|
@@ -28,15 +29,15 @@ module Gruff
|
|
28
29
|
'#cf5910', # orange
|
29
30
|
'black'
|
30
31
|
],
|
31
|
-
:
|
32
|
-
:
|
33
|
-
:
|
32
|
+
marker_color: 'black',
|
33
|
+
font_color: 'black',
|
34
|
+
background_colors: %w[#d1edf5 white]
|
34
35
|
}
|
35
36
|
|
36
37
|
# A color scheme from the colors used on the 2005 Rails keynote
|
37
38
|
# presentation at RubyConf.
|
38
39
|
RAILS_KEYNOTE = {
|
39
|
-
:
|
40
|
+
colors: [
|
40
41
|
'#00ff00', # green
|
41
42
|
'#333333', # grey
|
42
43
|
'#ff5d00', # orange
|
@@ -45,14 +46,14 @@ module Gruff
|
|
45
46
|
'#999999', # light grey
|
46
47
|
'black'
|
47
48
|
],
|
48
|
-
:
|
49
|
-
:
|
50
|
-
:
|
49
|
+
marker_color: 'white',
|
50
|
+
font_color: 'white',
|
51
|
+
background_colors: %w[#0083a3 #0083a3]
|
51
52
|
}
|
52
53
|
|
53
54
|
# A color scheme similar to that used on the popular podcast site.
|
54
55
|
ODEO = {
|
55
|
-
:
|
56
|
+
colors: [
|
56
57
|
'#202020', # grey
|
57
58
|
'white',
|
58
59
|
'#3a5b87', # dark blue
|
@@ -61,14 +62,14 @@ module Gruff
|
|
61
62
|
'#999999', # light grey
|
62
63
|
'black'
|
63
64
|
],
|
64
|
-
:
|
65
|
-
:
|
66
|
-
:
|
65
|
+
marker_color: 'white',
|
66
|
+
font_color: 'white',
|
67
|
+
background_colors: %w[#ff47a4 #ff1f81]
|
67
68
|
}
|
68
69
|
|
69
70
|
# A pastel theme
|
70
71
|
PASTEL = {
|
71
|
-
:
|
72
|
+
colors: [
|
72
73
|
'#a9dada', # blue
|
73
74
|
'#aedaa9', # green
|
74
75
|
'#daaea9', # peach
|
@@ -77,26 +78,24 @@ module Gruff
|
|
77
78
|
'#daaeda', # purple
|
78
79
|
'#dadada' # grey
|
79
80
|
],
|
80
|
-
:
|
81
|
-
:
|
82
|
-
:
|
81
|
+
marker_color: '#aea9a9', # Grey
|
82
|
+
font_color: 'black',
|
83
|
+
background_colors: 'white'
|
83
84
|
}
|
84
85
|
|
85
86
|
# A greyscale theme
|
86
87
|
GREYSCALE = {
|
87
|
-
:
|
88
|
-
'#282828',
|
89
|
-
'#383838',
|
90
|
-
'#686868',
|
91
|
-
'#989898',
|
92
|
-
'#c8c8c8',
|
93
|
-
'#e8e8e8'
|
88
|
+
colors: [
|
89
|
+
'#282828',
|
90
|
+
'#383838',
|
91
|
+
'#686868',
|
92
|
+
'#989898',
|
93
|
+
'#c8c8c8',
|
94
|
+
'#e8e8e8'
|
94
95
|
],
|
95
|
-
:
|
96
|
-
:
|
97
|
-
:
|
96
|
+
marker_color: '#aea9a9', # Grey
|
97
|
+
font_color: 'black',
|
98
|
+
background_colors: 'white'
|
98
99
|
}
|
99
|
-
|
100
100
|
end
|
101
101
|
end
|
102
|
-
|
data/lib/gruff/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gruff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoffrey Grosenbach
|
@@ -9,36 +9,92 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-05-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rmagick
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rubocop
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 0.81.0
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: 0.81.0
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: histogram
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
26
54
|
- !ruby/object:Gem::Version
|
27
55
|
version: '0'
|
28
56
|
- !ruby/object:Gem::Dependency
|
29
57
|
name: rake
|
30
58
|
requirement: !ruby/object:Gem::Requirement
|
31
59
|
requirements:
|
32
|
-
- -
|
60
|
+
- - ">="
|
33
61
|
- !ruby/object:Gem::Version
|
34
62
|
version: '0'
|
35
63
|
type: :development
|
36
64
|
prerelease: false
|
37
65
|
version_requirements: !ruby/object:Gem::Requirement
|
38
66
|
requirements:
|
39
|
-
- -
|
67
|
+
- - ">="
|
40
68
|
- !ruby/object:Gem::Version
|
41
69
|
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: minitest-reporters
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: yard
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 0.9.25
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 0.9.25
|
42
98
|
description: Beautiful graphs for one or multiple datasets. Can be used on websites
|
43
99
|
or in documents.
|
44
100
|
email: boss@topfunky.com
|
@@ -46,62 +102,59 @@ executables: []
|
|
46
102
|
extensions: []
|
47
103
|
extra_rdoc_files: []
|
48
104
|
files:
|
49
|
-
- .
|
50
|
-
- .
|
105
|
+
- ".editorconfig"
|
106
|
+
- ".github/ISSUE_TEMPLATE.md"
|
107
|
+
- ".gitignore"
|
108
|
+
- ".rubocop.yml"
|
109
|
+
- ".rubocop_todo.yml"
|
110
|
+
- ".travis.yml"
|
111
|
+
- ".yardopts"
|
112
|
+
- CHANGELOG.md
|
51
113
|
- Gemfile
|
52
|
-
- History.txt
|
53
114
|
- MIT-LICENSE
|
54
|
-
- Manifest.txt
|
55
115
|
- README.md
|
56
|
-
- RELEASE.md
|
57
116
|
- Rakefile
|
58
|
-
- assets/bubble.png
|
59
|
-
- assets/city_scene/background/0000.png
|
60
|
-
- assets/city_scene/background/0600.png
|
61
|
-
- assets/city_scene/background/2000.png
|
62
|
-
- assets/city_scene/clouds/cloudy.png
|
63
|
-
- assets/city_scene/clouds/partly_cloudy.png
|
64
|
-
- assets/city_scene/clouds/stormy.png
|
65
|
-
- assets/city_scene/grass/default.png
|
66
|
-
- assets/city_scene/haze/true.png
|
67
|
-
- assets/city_scene/number_sample/1.png
|
68
|
-
- assets/city_scene/number_sample/2.png
|
69
|
-
- assets/city_scene/number_sample/default.png
|
70
|
-
- assets/city_scene/sky/0000.png
|
71
|
-
- assets/city_scene/sky/0200.png
|
72
|
-
- assets/city_scene/sky/0400.png
|
73
|
-
- assets/city_scene/sky/0600.png
|
74
|
-
- assets/city_scene/sky/0800.png
|
75
|
-
- assets/city_scene/sky/1000.png
|
76
|
-
- assets/city_scene/sky/1200.png
|
77
|
-
- assets/city_scene/sky/1400.png
|
78
|
-
- assets/city_scene/sky/1500.png
|
79
|
-
- assets/city_scene/sky/1700.png
|
80
|
-
- assets/city_scene/sky/2000.png
|
81
|
-
- assets/pc306715.jpg
|
82
117
|
- assets/plastik/blue.png
|
83
118
|
- assets/plastik/green.png
|
84
119
|
- assets/plastik/red.png
|
120
|
+
- docker/Dockerfile
|
121
|
+
- docker/build.sh
|
122
|
+
- docker/launch.sh
|
85
123
|
- gruff.gemspec
|
86
124
|
- init.rb
|
87
125
|
- lib/gruff.rb
|
88
126
|
- lib/gruff/accumulator_bar.rb
|
89
127
|
- lib/gruff/area.rb
|
90
128
|
- lib/gruff/bar.rb
|
91
|
-
- lib/gruff/bar_conversion.rb
|
92
129
|
- lib/gruff/base.rb
|
93
130
|
- lib/gruff/bezier.rb
|
94
131
|
- lib/gruff/bullet.rb
|
95
|
-
- lib/gruff/deprecated.rb
|
96
132
|
- lib/gruff/dot.rb
|
133
|
+
- lib/gruff/helper/bar_conversion.rb
|
134
|
+
- lib/gruff/helper/bar_value_label_mixin.rb
|
135
|
+
- lib/gruff/helper/stacked_mixin.rb
|
136
|
+
- lib/gruff/histogram.rb
|
97
137
|
- lib/gruff/line.rb
|
98
138
|
- lib/gruff/mini/bar.rb
|
99
139
|
- lib/gruff/mini/legend.rb
|
100
140
|
- lib/gruff/mini/pie.rb
|
101
141
|
- lib/gruff/mini/side_bar.rb
|
102
142
|
- lib/gruff/net.rb
|
143
|
+
- lib/gruff/patch/rmagick.rb
|
144
|
+
- lib/gruff/patch/string.rb
|
103
145
|
- lib/gruff/photo_bar.rb
|
104
146
|
- lib/gruff/pie.rb
|
147
|
+
- lib/gruff/renderer/bezier.rb
|
148
|
+
- lib/gruff/renderer/circle.rb
|
149
|
+
- lib/gruff/renderer/dash_line.rb
|
150
|
+
- lib/gruff/renderer/dot.rb
|
151
|
+
- lib/gruff/renderer/ellipse.rb
|
152
|
+
- lib/gruff/renderer/line.rb
|
153
|
+
- lib/gruff/renderer/polygon.rb
|
154
|
+
- lib/gruff/renderer/polyline.rb
|
155
|
+
- lib/gruff/renderer/rectangle.rb
|
156
|
+
- lib/gruff/renderer/renderer.rb
|
157
|
+
- lib/gruff/renderer/text.rb
|
105
158
|
- lib/gruff/scatter.rb
|
106
159
|
- lib/gruff/scene.rb
|
107
160
|
- lib/gruff/side_bar.rb
|
@@ -109,36 +162,15 @@ files:
|
|
109
162
|
- lib/gruff/spider.rb
|
110
163
|
- lib/gruff/stacked_area.rb
|
111
164
|
- lib/gruff/stacked_bar.rb
|
112
|
-
- lib/gruff/
|
165
|
+
- lib/gruff/store/base_data.rb
|
166
|
+
- lib/gruff/store/custom_data.rb
|
167
|
+
- lib/gruff/store/store.rb
|
168
|
+
- lib/gruff/store/xy_data.rb
|
113
169
|
- lib/gruff/themes.rb
|
114
170
|
- lib/gruff/version.rb
|
115
171
|
- rails_generators/gruff/gruff_generator.rb
|
116
172
|
- rails_generators/gruff/templates/controller.rb
|
117
173
|
- rails_generators/gruff/templates/functional_test.rb
|
118
|
-
- test/gruff_test_case.rb
|
119
|
-
- test/image_compare.rb
|
120
|
-
- test/test_accumulator_bar.rb
|
121
|
-
- test/test_area.rb
|
122
|
-
- test/test_bar.rb
|
123
|
-
- test/test_base.rb
|
124
|
-
- test/test_bezier.rb
|
125
|
-
- test/test_bullet.rb
|
126
|
-
- test/test_dot.rb
|
127
|
-
- test/test_legend.rb
|
128
|
-
- test/test_line.rb
|
129
|
-
- test/test_mini_bar.rb
|
130
|
-
- test/test_mini_pie.rb
|
131
|
-
- test/test_mini_side_bar.rb
|
132
|
-
- test/test_net.rb
|
133
|
-
- test/test_photo.rb
|
134
|
-
- test/test_pie.rb
|
135
|
-
- test/test_scatter.rb
|
136
|
-
- test/test_scene.rb
|
137
|
-
- test/test_side_bar.rb
|
138
|
-
- test/test_sidestacked_bar.rb
|
139
|
-
- test/test_spider.rb
|
140
|
-
- test/test_stacked_area.rb
|
141
|
-
- test/test_stacked_bar.rb
|
142
174
|
homepage: https://github.com/topfunky/gruff
|
143
175
|
licenses:
|
144
176
|
- MIT
|
@@ -149,42 +181,17 @@ require_paths:
|
|
149
181
|
- lib
|
150
182
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
183
|
requirements:
|
152
|
-
- -
|
184
|
+
- - ">="
|
153
185
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
186
|
+
version: 1.9.3
|
155
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
188
|
requirements:
|
157
|
-
- -
|
189
|
+
- - ">="
|
158
190
|
- !ruby/object:Gem::Version
|
159
191
|
version: '0'
|
160
192
|
requirements: []
|
161
|
-
|
162
|
-
rubygems_version: 2.0.6
|
193
|
+
rubygems_version: 3.1.2
|
163
194
|
signing_key:
|
164
195
|
specification_version: 4
|
165
196
|
summary: Beautiful graphs for one or multiple datasets.
|
166
|
-
test_files:
|
167
|
-
- test/gruff_test_case.rb
|
168
|
-
- test/image_compare.rb
|
169
|
-
- test/test_accumulator_bar.rb
|
170
|
-
- test/test_area.rb
|
171
|
-
- test/test_bar.rb
|
172
|
-
- test/test_base.rb
|
173
|
-
- test/test_bezier.rb
|
174
|
-
- test/test_bullet.rb
|
175
|
-
- test/test_dot.rb
|
176
|
-
- test/test_legend.rb
|
177
|
-
- test/test_line.rb
|
178
|
-
- test/test_mini_bar.rb
|
179
|
-
- test/test_mini_pie.rb
|
180
|
-
- test/test_mini_side_bar.rb
|
181
|
-
- test/test_net.rb
|
182
|
-
- test/test_photo.rb
|
183
|
-
- test/test_pie.rb
|
184
|
-
- test/test_scatter.rb
|
185
|
-
- test/test_scene.rb
|
186
|
-
- test/test_side_bar.rb
|
187
|
-
- test/test_sidestacked_bar.rb
|
188
|
-
- test/test_spider.rb
|
189
|
-
- test/test_stacked_area.rb
|
190
|
-
- test/test_stacked_bar.rb
|
197
|
+
test_files: []
|