rails_charts 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +487 -0
  4. data/Rakefile +3 -0
  5. data/lib/rails_charts/area_chart.rb +31 -0
  6. data/lib/rails_charts/bar_chart.rb +25 -0
  7. data/lib/rails_charts/base_chart.rb +123 -0
  8. data/lib/rails_charts/calendar_chart.rb +36 -0
  9. data/lib/rails_charts/candlestick_chart.rb +25 -0
  10. data/lib/rails_charts/custom_chart.rb +14 -0
  11. data/lib/rails_charts/donut_chart.rb +36 -0
  12. data/lib/rails_charts/engine.rb +33 -0
  13. data/lib/rails_charts/funnel_chart.rb +30 -0
  14. data/lib/rails_charts/gauge_chart.rb +30 -0
  15. data/lib/rails_charts/helpers.rb +83 -0
  16. data/lib/rails_charts/javascript.rb +17 -0
  17. data/lib/rails_charts/line_chart.rb +78 -0
  18. data/lib/rails_charts/parallel_chart.rb +30 -0
  19. data/lib/rails_charts/pie_chart.rb +55 -0
  20. data/lib/rails_charts/radar_chart.rb +38 -0
  21. data/lib/rails_charts/ruby_ext.rb +28 -0
  22. data/lib/rails_charts/sankey_chart.rb +31 -0
  23. data/lib/rails_charts/scatter_chart.rb +34 -0
  24. data/lib/rails_charts/stacked_bar_chart.rb +13 -0
  25. data/lib/rails_charts/version.rb +3 -0
  26. data/lib/rails_charts.rb +43 -0
  27. data/vendor/assets/rails_charts/echarts.min.js +45 -0
  28. data/vendor/assets/rails_charts/extension/bmap.js +413 -0
  29. data/vendor/assets/rails_charts/extension/bmap.js.map +1 -0
  30. data/vendor/assets/rails_charts/extension/bmap.min.js +22 -0
  31. data/vendor/assets/rails_charts/extension/dataTool.js +436 -0
  32. data/vendor/assets/rails_charts/extension/dataTool.js.map +1 -0
  33. data/vendor/assets/rails_charts/extension/dataTool.min.js +22 -0
  34. data/vendor/assets/rails_charts/i18n/langCS-obj.js +172 -0
  35. data/vendor/assets/rails_charts/i18n/langCS.js +168 -0
  36. data/vendor/assets/rails_charts/i18n/langDE-obj.js +172 -0
  37. data/vendor/assets/rails_charts/i18n/langDE.js +168 -0
  38. data/vendor/assets/rails_charts/i18n/langEN-obj.js +173 -0
  39. data/vendor/assets/rails_charts/i18n/langEN.js +169 -0
  40. data/vendor/assets/rails_charts/i18n/langES-obj.js +111 -0
  41. data/vendor/assets/rails_charts/i18n/langES.js +107 -0
  42. data/vendor/assets/rails_charts/i18n/langFI-obj.js +111 -0
  43. data/vendor/assets/rails_charts/i18n/langFI.js +107 -0
  44. data/vendor/assets/rails_charts/i18n/langFR-obj.js +173 -0
  45. data/vendor/assets/rails_charts/i18n/langFR.js +169 -0
  46. data/vendor/assets/rails_charts/i18n/langIT-obj.js +173 -0
  47. data/vendor/assets/rails_charts/i18n/langIT.js +169 -0
  48. data/vendor/assets/rails_charts/i18n/langJA-obj.js +173 -0
  49. data/vendor/assets/rails_charts/i18n/langJA.js +169 -0
  50. data/vendor/assets/rails_charts/i18n/langKO-obj.js +173 -0
  51. data/vendor/assets/rails_charts/i18n/langKO.js +169 -0
  52. data/vendor/assets/rails_charts/i18n/langPL-obj.js +173 -0
  53. data/vendor/assets/rails_charts/i18n/langPL.js +169 -0
  54. data/vendor/assets/rails_charts/i18n/langPT-br-obj.js +174 -0
  55. data/vendor/assets/rails_charts/i18n/langPT-br.js +170 -0
  56. data/vendor/assets/rails_charts/i18n/langRO-obj.js +173 -0
  57. data/vendor/assets/rails_charts/i18n/langRO.js +169 -0
  58. data/vendor/assets/rails_charts/i18n/langRU-obj.js +174 -0
  59. data/vendor/assets/rails_charts/i18n/langRU.js +170 -0
  60. data/vendor/assets/rails_charts/i18n/langSI-obj.js +172 -0
  61. data/vendor/assets/rails_charts/i18n/langSI.js +168 -0
  62. data/vendor/assets/rails_charts/i18n/langTH-obj.js +111 -0
  63. data/vendor/assets/rails_charts/i18n/langTH.js +107 -0
  64. data/vendor/assets/rails_charts/i18n/langZH-obj.js +168 -0
  65. data/vendor/assets/rails_charts/i18n/langZH.js +164 -0
  66. data/vendor/assets/rails_charts/theme/azul.js +163 -0
  67. data/vendor/assets/rails_charts/theme/bee-inspired.js +178 -0
  68. data/vendor/assets/rails_charts/theme/blue.js +178 -0
  69. data/vendor/assets/rails_charts/theme/caravan.js +178 -0
  70. data/vendor/assets/rails_charts/theme/carp.js +163 -0
  71. data/vendor/assets/rails_charts/theme/cool.js +180 -0
  72. data/vendor/assets/rails_charts/theme/dark-blue.js +164 -0
  73. data/vendor/assets/rails_charts/theme/dark-bold.js +164 -0
  74. data/vendor/assets/rails_charts/theme/dark-digerati.js +164 -0
  75. data/vendor/assets/rails_charts/theme/dark-fresh-cut.js +164 -0
  76. data/vendor/assets/rails_charts/theme/dark-mushroom.js +164 -0
  77. data/vendor/assets/rails_charts/theme/dark.js +224 -0
  78. data/vendor/assets/rails_charts/theme/eduardo.js +178 -0
  79. data/vendor/assets/rails_charts/theme/forest.js +163 -0
  80. data/vendor/assets/rails_charts/theme/fresh-cut.js +163 -0
  81. data/vendor/assets/rails_charts/theme/fruit.js +178 -0
  82. data/vendor/assets/rails_charts/theme/gray.js +220 -0
  83. data/vendor/assets/rails_charts/theme/green.js +222 -0
  84. data/vendor/assets/rails_charts/theme/helianthus.js +263 -0
  85. data/vendor/assets/rails_charts/theme/infographic.js +236 -0
  86. data/vendor/assets/rails_charts/theme/inspired.js +163 -0
  87. data/vendor/assets/rails_charts/theme/jazz.js +163 -0
  88. data/vendor/assets/rails_charts/theme/london.js +163 -0
  89. data/vendor/assets/rails_charts/theme/macarons.js +240 -0
  90. data/vendor/assets/rails_charts/theme/macarons2.js +249 -0
  91. data/vendor/assets/rails_charts/theme/mint.js +155 -0
  92. data/vendor/assets/rails_charts/theme/red-velvet.js +163 -0
  93. data/vendor/assets/rails_charts/theme/red.js +225 -0
  94. data/vendor/assets/rails_charts/theme/roma.js +119 -0
  95. data/vendor/assets/rails_charts/theme/royal.js +163 -0
  96. data/vendor/assets/rails_charts/theme/sakura.js +140 -0
  97. data/vendor/assets/rails_charts/theme/shine.js +177 -0
  98. data/vendor/assets/rails_charts/theme/tech-blue.js +180 -0
  99. data/vendor/assets/rails_charts/theme/vintage.js +63 -0
  100. metadata +268 -0
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Licensed to the Apache Software Foundation (ASF) under one
3
+ * or more contributor license agreements. See the NOTICE file
4
+ * distributed with this work for additional information
5
+ * regarding copyright ownership. The ASF licenses this file
6
+ * to you under the Apache License, Version 2.0 (the
7
+ * "License"); you may not use this file except in compliance
8
+ * with the License. You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing,
13
+ * software distributed under the License is distributed on an
14
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ * KIND, either express or implied. See the License for the
16
+ * specific language governing permissions and limitations
17
+ * under the License.
18
+ */
19
+
20
+ (function(root, factory) {
21
+ if (typeof define === 'function' && define.amd) {
22
+ // AMD. Register as an anonymous module.
23
+ define(['exports', 'echarts'], factory);
24
+ } else if (
25
+ typeof exports === 'object' &&
26
+ typeof exports.nodeName !== 'string'
27
+ ) {
28
+ // CommonJS
29
+ factory(exports, require('echarts/lib/echarts'));
30
+ } else {
31
+ // Browser globals
32
+ factory({}, root.echarts);
33
+ }
34
+ })(this, function(exports, echarts) {
35
+ var log = function(msg) {
36
+ if (typeof console !== 'undefined') {
37
+ console && console.error && console.error(msg);
38
+ }
39
+ };
40
+ if (!echarts) {
41
+ log('ECharts is not Loaded');
42
+ return;
43
+ }
44
+ var colorPalette = [
45
+ '#d87c7c',
46
+ '#919e8b',
47
+ '#d7ab82',
48
+ '#6e7074',
49
+ '#61a0a8',
50
+ '#efa18d',
51
+ '#787464',
52
+ '#cc7e63',
53
+ '#724e58',
54
+ '#4b565b'
55
+ ];
56
+ echarts.registerTheme('vintage', {
57
+ color: colorPalette,
58
+ backgroundColor: '#fef8ef',
59
+ graph: {
60
+ color: colorPalette
61
+ }
62
+ });
63
+ });
metadata ADDED
@@ -0,0 +1,268 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails_charts
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - ''
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faker
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: groupdate
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sprockets-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: annotate
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-rails
113
+ requirement: !ruby/object:Gem::Requirement
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
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: One more solution to create charts in Ruby on Rails application
140
+ email:
141
+ - igorkasyanchuk@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - MIT-LICENSE
147
+ - README.md
148
+ - Rakefile
149
+ - lib/rails_charts.rb
150
+ - lib/rails_charts/area_chart.rb
151
+ - lib/rails_charts/bar_chart.rb
152
+ - lib/rails_charts/base_chart.rb
153
+ - lib/rails_charts/calendar_chart.rb
154
+ - lib/rails_charts/candlestick_chart.rb
155
+ - lib/rails_charts/custom_chart.rb
156
+ - lib/rails_charts/donut_chart.rb
157
+ - lib/rails_charts/engine.rb
158
+ - lib/rails_charts/funnel_chart.rb
159
+ - lib/rails_charts/gauge_chart.rb
160
+ - lib/rails_charts/helpers.rb
161
+ - lib/rails_charts/javascript.rb
162
+ - lib/rails_charts/line_chart.rb
163
+ - lib/rails_charts/parallel_chart.rb
164
+ - lib/rails_charts/pie_chart.rb
165
+ - lib/rails_charts/radar_chart.rb
166
+ - lib/rails_charts/ruby_ext.rb
167
+ - lib/rails_charts/sankey_chart.rb
168
+ - lib/rails_charts/scatter_chart.rb
169
+ - lib/rails_charts/stacked_bar_chart.rb
170
+ - lib/rails_charts/version.rb
171
+ - vendor/assets/rails_charts/echarts.min.js
172
+ - vendor/assets/rails_charts/extension/bmap.js
173
+ - vendor/assets/rails_charts/extension/bmap.js.map
174
+ - vendor/assets/rails_charts/extension/bmap.min.js
175
+ - vendor/assets/rails_charts/extension/dataTool.js
176
+ - vendor/assets/rails_charts/extension/dataTool.js.map
177
+ - vendor/assets/rails_charts/extension/dataTool.min.js
178
+ - vendor/assets/rails_charts/i18n/langCS-obj.js
179
+ - vendor/assets/rails_charts/i18n/langCS.js
180
+ - vendor/assets/rails_charts/i18n/langDE-obj.js
181
+ - vendor/assets/rails_charts/i18n/langDE.js
182
+ - vendor/assets/rails_charts/i18n/langEN-obj.js
183
+ - vendor/assets/rails_charts/i18n/langEN.js
184
+ - vendor/assets/rails_charts/i18n/langES-obj.js
185
+ - vendor/assets/rails_charts/i18n/langES.js
186
+ - vendor/assets/rails_charts/i18n/langFI-obj.js
187
+ - vendor/assets/rails_charts/i18n/langFI.js
188
+ - vendor/assets/rails_charts/i18n/langFR-obj.js
189
+ - vendor/assets/rails_charts/i18n/langFR.js
190
+ - vendor/assets/rails_charts/i18n/langIT-obj.js
191
+ - vendor/assets/rails_charts/i18n/langIT.js
192
+ - vendor/assets/rails_charts/i18n/langJA-obj.js
193
+ - vendor/assets/rails_charts/i18n/langJA.js
194
+ - vendor/assets/rails_charts/i18n/langKO-obj.js
195
+ - vendor/assets/rails_charts/i18n/langKO.js
196
+ - vendor/assets/rails_charts/i18n/langPL-obj.js
197
+ - vendor/assets/rails_charts/i18n/langPL.js
198
+ - vendor/assets/rails_charts/i18n/langPT-br-obj.js
199
+ - vendor/assets/rails_charts/i18n/langPT-br.js
200
+ - vendor/assets/rails_charts/i18n/langRO-obj.js
201
+ - vendor/assets/rails_charts/i18n/langRO.js
202
+ - vendor/assets/rails_charts/i18n/langRU-obj.js
203
+ - vendor/assets/rails_charts/i18n/langRU.js
204
+ - vendor/assets/rails_charts/i18n/langSI-obj.js
205
+ - vendor/assets/rails_charts/i18n/langSI.js
206
+ - vendor/assets/rails_charts/i18n/langTH-obj.js
207
+ - vendor/assets/rails_charts/i18n/langTH.js
208
+ - vendor/assets/rails_charts/i18n/langZH-obj.js
209
+ - vendor/assets/rails_charts/i18n/langZH.js
210
+ - vendor/assets/rails_charts/theme/azul.js
211
+ - vendor/assets/rails_charts/theme/bee-inspired.js
212
+ - vendor/assets/rails_charts/theme/blue.js
213
+ - vendor/assets/rails_charts/theme/caravan.js
214
+ - vendor/assets/rails_charts/theme/carp.js
215
+ - vendor/assets/rails_charts/theme/cool.js
216
+ - vendor/assets/rails_charts/theme/dark-blue.js
217
+ - vendor/assets/rails_charts/theme/dark-bold.js
218
+ - vendor/assets/rails_charts/theme/dark-digerati.js
219
+ - vendor/assets/rails_charts/theme/dark-fresh-cut.js
220
+ - vendor/assets/rails_charts/theme/dark-mushroom.js
221
+ - vendor/assets/rails_charts/theme/dark.js
222
+ - vendor/assets/rails_charts/theme/eduardo.js
223
+ - vendor/assets/rails_charts/theme/forest.js
224
+ - vendor/assets/rails_charts/theme/fresh-cut.js
225
+ - vendor/assets/rails_charts/theme/fruit.js
226
+ - vendor/assets/rails_charts/theme/gray.js
227
+ - vendor/assets/rails_charts/theme/green.js
228
+ - vendor/assets/rails_charts/theme/helianthus.js
229
+ - vendor/assets/rails_charts/theme/infographic.js
230
+ - vendor/assets/rails_charts/theme/inspired.js
231
+ - vendor/assets/rails_charts/theme/jazz.js
232
+ - vendor/assets/rails_charts/theme/london.js
233
+ - vendor/assets/rails_charts/theme/macarons.js
234
+ - vendor/assets/rails_charts/theme/macarons2.js
235
+ - vendor/assets/rails_charts/theme/mint.js
236
+ - vendor/assets/rails_charts/theme/red-velvet.js
237
+ - vendor/assets/rails_charts/theme/red.js
238
+ - vendor/assets/rails_charts/theme/roma.js
239
+ - vendor/assets/rails_charts/theme/royal.js
240
+ - vendor/assets/rails_charts/theme/sakura.js
241
+ - vendor/assets/rails_charts/theme/shine.js
242
+ - vendor/assets/rails_charts/theme/tech-blue.js
243
+ - vendor/assets/rails_charts/theme/vintage.js
244
+ homepage: https://github.com/railsjazz/rails_charts
245
+ licenses:
246
+ - MIT
247
+ metadata:
248
+ homepage_uri: https://github.com/railsjazz/rails_charts
249
+ post_install_message:
250
+ rdoc_options: []
251
+ require_paths:
252
+ - lib
253
+ required_ruby_version: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - ">="
256
+ - !ruby/object:Gem::Version
257
+ version: '0'
258
+ required_rubygems_version: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
263
+ requirements: []
264
+ rubygems_version: 3.2.3
265
+ signing_key:
266
+ specification_version: 4
267
+ summary: One more solution to create charts in Ruby on Rails application
268
+ test_files: []