rails-data-explorer 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +52 -0
- data/Rakefile +18 -0
- data/lib/rails-data-explorer.rb +44 -0
- data/lib/rails-data-explorer/action_view_extension.rb +12 -0
- data/lib/rails-data-explorer/active_record_extension.rb +14 -0
- data/lib/rails-data-explorer/chart.rb +52 -0
- data/lib/rails-data-explorer/chart/box_plot.rb +79 -0
- data/lib/rails-data-explorer/chart/box_plot_group.rb +109 -0
- data/lib/rails-data-explorer/chart/contingency_table.rb +189 -0
- data/lib/rails-data-explorer/chart/descriptive_statistics_table.rb +22 -0
- data/lib/rails-data-explorer/chart/descriptive_statistics_table_group.rb +0 -0
- data/lib/rails-data-explorer/chart/histogram_categorical.rb +73 -0
- data/lib/rails-data-explorer/chart/histogram_quantitative.rb +73 -0
- data/lib/rails-data-explorer/chart/histogram_temporal.rb +78 -0
- data/lib/rails-data-explorer/chart/multi_dimensional_charts.rb +1 -0
- data/lib/rails-data-explorer/chart/parallel_coordinates.rb +89 -0
- data/lib/rails-data-explorer/chart/parallel_set.rb +65 -0
- data/lib/rails-data-explorer/chart/pie_chart.rb +67 -0
- data/lib/rails-data-explorer/chart/scatterplot.rb +120 -0
- data/lib/rails-data-explorer/chart/scatterplot_matrix.rb +1 -0
- data/lib/rails-data-explorer/chart/stacked_bar_chart_categorical_percent.rb +120 -0
- data/lib/rails-data-explorer/data_series.rb +115 -0
- data/lib/rails-data-explorer/data_set.rb +127 -0
- data/lib/rails-data-explorer/data_type.rb +34 -0
- data/lib/rails-data-explorer/data_type/categorical.rb +117 -0
- data/lib/rails-data-explorer/data_type/geo.rb +1 -0
- data/lib/rails-data-explorer/data_type/quantitative.rb +109 -0
- data/lib/rails-data-explorer/data_type/quantitative/decimal.rb +13 -0
- data/lib/rails-data-explorer/data_type/quantitative/integer.rb +13 -0
- data/lib/rails-data-explorer/data_type/quantitative/temporal.rb +62 -0
- data/lib/rails-data-explorer/engine.rb +24 -0
- data/lib/rails-data-explorer/exploration.rb +89 -0
- data/lib/rails-data-explorer/statistics/pearsons_chi_squared_independence_test.rb +75 -0
- data/lib/rails-data-explorer/statistics/rng_category.rb +37 -0
- data/lib/rails-data-explorer/statistics/rng_gaussian.rb +24 -0
- data/lib/rails-data-explorer/statistics/rng_power_law.rb +21 -0
- data/lib/rails-data-explorer/utils/color_scale.rb +33 -0
- data/lib/rails-data-explorer/utils/data_binner.rb +8 -0
- data/lib/rails-data-explorer/utils/data_encoder.rb +2 -0
- data/lib/rails-data-explorer/utils/data_quantizer.rb +2 -0
- data/lib/rails-data-explorer/utils/value_formatter.rb +41 -0
- data/rails-data-explorer.gemspec +30 -0
- data/vendor/assets/javascripts/d3.boxplot.js +302 -0
- data/vendor/assets/javascripts/d3.parcoords.js +585 -0
- data/vendor/assets/javascripts/d3.parsets.js +663 -0
- data/vendor/assets/javascripts/d3.v3.js +9294 -0
- data/vendor/assets/javascripts/nv.d3.js +14369 -0
- data/vendor/assets/javascripts/rails-data-explorer.js +19 -0
- data/vendor/assets/stylesheets/bootstrap-theme.css +346 -0
- data/vendor/assets/stylesheets/bootstrap.css +1727 -0
- data/vendor/assets/stylesheets/d3.boxplot.css +20 -0
- data/vendor/assets/stylesheets/d3.parcoords.css +34 -0
- data/vendor/assets/stylesheets/d3.parsets.css +34 -0
- data/vendor/assets/stylesheets/nv.d3.css +769 -0
- data/vendor/assets/stylesheets/rails-data-explorer.css +21 -0
- data/vendor/assets/stylesheets/rde-default-style.css +42 -0
- metadata +250 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
|
12
|
+
*= require bootstrap
|
13
|
+
*= require bootstrap-theme
|
14
|
+
*= require nv.d3
|
15
|
+
*= require d3.boxplot
|
16
|
+
*= require d3.parcoords
|
17
|
+
*= require d3.parsets
|
18
|
+
|
19
|
+
*= require rde-default-style
|
20
|
+
|
21
|
+
*/
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.rails-data-explorer {
|
2
|
+
padding: 10px;
|
3
|
+
}
|
4
|
+
|
5
|
+
.rails-data-explorer h1 {
|
6
|
+
font-size: 48px;
|
7
|
+
font-weight: 300;
|
8
|
+
letter-spacing: -2px;
|
9
|
+
margin: 0.3em 0 0.1em;
|
10
|
+
text-rendering: optimizelegibility;
|
11
|
+
}
|
12
|
+
|
13
|
+
h2.rde-exploration-title {
|
14
|
+
font-weight: 300;
|
15
|
+
font-size: 24px;
|
16
|
+
}
|
17
|
+
|
18
|
+
h3.rde-chart-title {
|
19
|
+
display: none;
|
20
|
+
font-size: 16px;
|
21
|
+
font-weight: 400;
|
22
|
+
margin: 0 0 0.6em;
|
23
|
+
}
|
24
|
+
|
25
|
+
.rails-data-explorer h2 {
|
26
|
+
text-rendering: optimizelegibility;
|
27
|
+
}
|
28
|
+
|
29
|
+
table.rde-table {
|
30
|
+
width: auto;
|
31
|
+
}
|
32
|
+
|
33
|
+
table.rde-table td,
|
34
|
+
table.rde-table tr.rde-column_header th {
|
35
|
+
text-align: center;
|
36
|
+
}
|
37
|
+
|
38
|
+
td.rde-numerical {
|
39
|
+
font-family: "Menlo",monospace;
|
40
|
+
line-height: normal;
|
41
|
+
text-align: right;
|
42
|
+
}
|
metadata
ADDED
@@ -0,0 +1,250 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails-data-explorer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Jo Hund
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: actionview
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: color
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: descriptive-statistics
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: distribution
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: interpolate
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: bundler
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.0.0
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.0.0
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rake
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: minitest
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: minitest-spec-expect
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
description: rails-data-explorer is a Rails Engine plugin that makes it easy to explore
|
159
|
+
the data in your app using charts and statistics.
|
160
|
+
email: jhund@clearcove.ca
|
161
|
+
executables: []
|
162
|
+
extensions: []
|
163
|
+
extra_rdoc_files: []
|
164
|
+
files:
|
165
|
+
- .gitignore
|
166
|
+
- CHANGELOG.md
|
167
|
+
- Gemfile
|
168
|
+
- MIT-LICENSE
|
169
|
+
- README.md
|
170
|
+
- Rakefile
|
171
|
+
- lib/rails-data-explorer.rb
|
172
|
+
- lib/rails-data-explorer/action_view_extension.rb
|
173
|
+
- lib/rails-data-explorer/active_record_extension.rb
|
174
|
+
- lib/rails-data-explorer/chart.rb
|
175
|
+
- lib/rails-data-explorer/chart/box_plot.rb
|
176
|
+
- lib/rails-data-explorer/chart/box_plot_group.rb
|
177
|
+
- lib/rails-data-explorer/chart/contingency_table.rb
|
178
|
+
- lib/rails-data-explorer/chart/descriptive_statistics_table.rb
|
179
|
+
- lib/rails-data-explorer/chart/descriptive_statistics_table_group.rb
|
180
|
+
- lib/rails-data-explorer/chart/histogram_categorical.rb
|
181
|
+
- lib/rails-data-explorer/chart/histogram_quantitative.rb
|
182
|
+
- lib/rails-data-explorer/chart/histogram_temporal.rb
|
183
|
+
- lib/rails-data-explorer/chart/multi_dimensional_charts.rb
|
184
|
+
- lib/rails-data-explorer/chart/parallel_coordinates.rb
|
185
|
+
- lib/rails-data-explorer/chart/parallel_set.rb
|
186
|
+
- lib/rails-data-explorer/chart/pie_chart.rb
|
187
|
+
- lib/rails-data-explorer/chart/scatterplot.rb
|
188
|
+
- lib/rails-data-explorer/chart/scatterplot_matrix.rb
|
189
|
+
- lib/rails-data-explorer/chart/stacked_bar_chart_categorical_percent.rb
|
190
|
+
- lib/rails-data-explorer/data_series.rb
|
191
|
+
- lib/rails-data-explorer/data_set.rb
|
192
|
+
- lib/rails-data-explorer/data_type.rb
|
193
|
+
- lib/rails-data-explorer/data_type/categorical.rb
|
194
|
+
- lib/rails-data-explorer/data_type/geo.rb
|
195
|
+
- lib/rails-data-explorer/data_type/quantitative.rb
|
196
|
+
- lib/rails-data-explorer/data_type/quantitative/decimal.rb
|
197
|
+
- lib/rails-data-explorer/data_type/quantitative/integer.rb
|
198
|
+
- lib/rails-data-explorer/data_type/quantitative/temporal.rb
|
199
|
+
- lib/rails-data-explorer/engine.rb
|
200
|
+
- lib/rails-data-explorer/exploration.rb
|
201
|
+
- lib/rails-data-explorer/statistics/pearsons_chi_squared_independence_test.rb
|
202
|
+
- lib/rails-data-explorer/statistics/rng_category.rb
|
203
|
+
- lib/rails-data-explorer/statistics/rng_gaussian.rb
|
204
|
+
- lib/rails-data-explorer/statistics/rng_power_law.rb
|
205
|
+
- lib/rails-data-explorer/utils/color_scale.rb
|
206
|
+
- lib/rails-data-explorer/utils/data_binner.rb
|
207
|
+
- lib/rails-data-explorer/utils/data_encoder.rb
|
208
|
+
- lib/rails-data-explorer/utils/data_quantizer.rb
|
209
|
+
- lib/rails-data-explorer/utils/value_formatter.rb
|
210
|
+
- rails-data-explorer.gemspec
|
211
|
+
- vendor/assets/javascripts/d3.boxplot.js
|
212
|
+
- vendor/assets/javascripts/d3.parcoords.js
|
213
|
+
- vendor/assets/javascripts/d3.parsets.js
|
214
|
+
- vendor/assets/javascripts/d3.v3.js
|
215
|
+
- vendor/assets/javascripts/nv.d3.js
|
216
|
+
- vendor/assets/javascripts/rails-data-explorer.js
|
217
|
+
- vendor/assets/stylesheets/bootstrap-theme.css
|
218
|
+
- vendor/assets/stylesheets/bootstrap.css
|
219
|
+
- vendor/assets/stylesheets/d3.boxplot.css
|
220
|
+
- vendor/assets/stylesheets/d3.parcoords.css
|
221
|
+
- vendor/assets/stylesheets/d3.parsets.css
|
222
|
+
- vendor/assets/stylesheets/nv.d3.css
|
223
|
+
- vendor/assets/stylesheets/rails-data-explorer.css
|
224
|
+
- vendor/assets/stylesheets/rde-default-style.css
|
225
|
+
homepage: http://rails-data-explorer.clearcove.ca
|
226
|
+
licenses:
|
227
|
+
- MIT
|
228
|
+
post_install_message:
|
229
|
+
rdoc_options: []
|
230
|
+
require_paths:
|
231
|
+
- lib
|
232
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
239
|
+
none: false
|
240
|
+
requirements:
|
241
|
+
- - ! '>='
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0'
|
244
|
+
requirements: []
|
245
|
+
rubyforge_project:
|
246
|
+
rubygems_version: 1.8.25
|
247
|
+
signing_key:
|
248
|
+
specification_version: 3
|
249
|
+
summary: A Rails engine plugin for exploring data in your app with charts and statistics.
|
250
|
+
test_files: []
|