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,173 @@
1
+
2
+
3
+ /*
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+
23
+ /**
24
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
25
+ */
26
+ (function(root, factory) {
27
+ if (typeof define === 'function' && define.amd) {
28
+ // AMD. Register as an anonymous module.
29
+ define(['exports'], factory);
30
+ } else if (
31
+ typeof exports === 'object' &&
32
+ typeof exports.nodeName !== 'string'
33
+ ) {
34
+ // CommonJS
35
+ factory(exports);
36
+ } else {
37
+ // Browser globals
38
+ factory({});
39
+ }
40
+ })(this, function(exports) {
41
+
42
+
43
+ /**
44
+ * Language: English.
45
+ */
46
+
47
+ var localeObj = {
48
+ time: {
49
+ month: [
50
+ 'January', 'February', 'March', 'April', 'May', 'June',
51
+ 'July', 'August', 'September', 'October', 'November', 'December'
52
+ ],
53
+ monthAbbr: [
54
+ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
55
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
56
+ ],
57
+ dayOfWeek: [
58
+ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
59
+ ],
60
+ dayOfWeekAbbr: [
61
+ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
62
+ ]
63
+ },
64
+ legend: {
65
+ selector: {
66
+ all: 'All',
67
+ inverse: 'Inv'
68
+ }
69
+ },
70
+ toolbox: {
71
+ brush: {
72
+ title: {
73
+ rect: 'Box Select',
74
+ polygon: 'Lasso Select',
75
+ lineX: 'Horizontally Select',
76
+ lineY: 'Vertically Select',
77
+ keep: 'Keep Selections',
78
+ clear: 'Clear Selections'
79
+ }
80
+ },
81
+ dataView: {
82
+ title: 'Data View',
83
+ lang: ['Data View', 'Close', 'Refresh']
84
+ },
85
+ dataZoom: {
86
+ title: {
87
+ zoom: 'Zoom',
88
+ back: 'Zoom Reset'
89
+ }
90
+ },
91
+ magicType: {
92
+ title: {
93
+ line: 'Switch to Line Chart',
94
+ bar: 'Switch to Bar Chart',
95
+ stack: 'Stack',
96
+ tiled: 'Tile'
97
+ }
98
+ },
99
+ restore: {
100
+ title: 'Restore'
101
+ },
102
+ saveAsImage: {
103
+ title: 'Save as Image',
104
+ lang: ['Right Click to Save Image']
105
+ }
106
+ },
107
+ series: {
108
+ typeNames: {
109
+ pie: 'Pie chart',
110
+ bar: 'Bar chart',
111
+ line: 'Line chart',
112
+ scatter: 'Scatter plot',
113
+ effectScatter: 'Ripple scatter plot',
114
+ radar: 'Radar chart',
115
+ tree: 'Tree',
116
+ treemap: 'Treemap',
117
+ boxplot: 'Boxplot',
118
+ candlestick: 'Candlestick',
119
+ k: 'K line chart',
120
+ heatmap: 'Heat map',
121
+ map: 'Map',
122
+ parallel: 'Parallel coordinate map',
123
+ lines: 'Line graph',
124
+ graph: 'Relationship graph',
125
+ sankey: 'Sankey diagram',
126
+ funnel: 'Funnel chart',
127
+ gauge: 'Gauge',
128
+ pictorialBar: 'Pictorial bar',
129
+ themeRiver: 'Theme River Map',
130
+ sunburst: 'Sunburst'
131
+ }
132
+ },
133
+ aria: {
134
+ general: {
135
+ withTitle: 'This is a chart about "{title}"',
136
+ withoutTitle: 'This is a chart'
137
+ },
138
+ series: {
139
+ single: {
140
+ prefix: '',
141
+ withName: ' with type {seriesType} named {seriesName}.',
142
+ withoutName: ' with type {seriesType}.'
143
+ },
144
+ multiple: {
145
+ prefix: '. It consists of {seriesCount} series count.',
146
+ withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',
147
+ withoutName: ' The {seriesId} series is a {seriesType}.',
148
+ separator: {
149
+ middle: '',
150
+ end: ''
151
+ }
152
+ }
153
+ },
154
+ data: {
155
+ allData: 'The data is as follows: ',
156
+ partialData: 'The first {displayCnt} items are: ',
157
+ withName: 'the data for {name} is {value}',
158
+ withoutName: '{value}',
159
+ separator: {
160
+ middle: ', ',
161
+ end: '. '
162
+ }
163
+ }
164
+ }
165
+ };
166
+
167
+ for (var key in localeObj) {
168
+ if (localeObj.hasOwnProperty(key)) {
169
+ exports[key] = localeObj[key];
170
+ }
171
+ }
172
+
173
+ });
@@ -0,0 +1,169 @@
1
+
2
+
3
+ /*
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+
23
+ /**
24
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
25
+ */
26
+ (function(root, factory) {
27
+ if (typeof define === 'function' && define.amd) {
28
+ // AMD. Register as an anonymous module.
29
+ define(['exports', 'echarts'], factory);
30
+ } else if (
31
+ typeof exports === 'object' &&
32
+ typeof exports.nodeName !== 'string'
33
+ ) {
34
+ // CommonJS
35
+ factory(exports, require('echarts/lib/echarts'));
36
+ } else {
37
+ // Browser globals
38
+ factory({}, root.echarts);
39
+ }
40
+ })(this, function(exports, echarts) {
41
+
42
+
43
+ /**
44
+ * Language: English.
45
+ */
46
+
47
+ var localeObj = {
48
+ time: {
49
+ month: [
50
+ 'January', 'February', 'March', 'April', 'May', 'June',
51
+ 'July', 'August', 'September', 'October', 'November', 'December'
52
+ ],
53
+ monthAbbr: [
54
+ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
55
+ 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
56
+ ],
57
+ dayOfWeek: [
58
+ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
59
+ ],
60
+ dayOfWeekAbbr: [
61
+ 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
62
+ ]
63
+ },
64
+ legend: {
65
+ selector: {
66
+ all: 'All',
67
+ inverse: 'Inv'
68
+ }
69
+ },
70
+ toolbox: {
71
+ brush: {
72
+ title: {
73
+ rect: 'Box Select',
74
+ polygon: 'Lasso Select',
75
+ lineX: 'Horizontally Select',
76
+ lineY: 'Vertically Select',
77
+ keep: 'Keep Selections',
78
+ clear: 'Clear Selections'
79
+ }
80
+ },
81
+ dataView: {
82
+ title: 'Data View',
83
+ lang: ['Data View', 'Close', 'Refresh']
84
+ },
85
+ dataZoom: {
86
+ title: {
87
+ zoom: 'Zoom',
88
+ back: 'Zoom Reset'
89
+ }
90
+ },
91
+ magicType: {
92
+ title: {
93
+ line: 'Switch to Line Chart',
94
+ bar: 'Switch to Bar Chart',
95
+ stack: 'Stack',
96
+ tiled: 'Tile'
97
+ }
98
+ },
99
+ restore: {
100
+ title: 'Restore'
101
+ },
102
+ saveAsImage: {
103
+ title: 'Save as Image',
104
+ lang: ['Right Click to Save Image']
105
+ }
106
+ },
107
+ series: {
108
+ typeNames: {
109
+ pie: 'Pie chart',
110
+ bar: 'Bar chart',
111
+ line: 'Line chart',
112
+ scatter: 'Scatter plot',
113
+ effectScatter: 'Ripple scatter plot',
114
+ radar: 'Radar chart',
115
+ tree: 'Tree',
116
+ treemap: 'Treemap',
117
+ boxplot: 'Boxplot',
118
+ candlestick: 'Candlestick',
119
+ k: 'K line chart',
120
+ heatmap: 'Heat map',
121
+ map: 'Map',
122
+ parallel: 'Parallel coordinate map',
123
+ lines: 'Line graph',
124
+ graph: 'Relationship graph',
125
+ sankey: 'Sankey diagram',
126
+ funnel: 'Funnel chart',
127
+ gauge: 'Gauge',
128
+ pictorialBar: 'Pictorial bar',
129
+ themeRiver: 'Theme River Map',
130
+ sunburst: 'Sunburst'
131
+ }
132
+ },
133
+ aria: {
134
+ general: {
135
+ withTitle: 'This is a chart about "{title}"',
136
+ withoutTitle: 'This is a chart'
137
+ },
138
+ series: {
139
+ single: {
140
+ prefix: '',
141
+ withName: ' with type {seriesType} named {seriesName}.',
142
+ withoutName: ' with type {seriesType}.'
143
+ },
144
+ multiple: {
145
+ prefix: '. It consists of {seriesCount} series count.',
146
+ withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',
147
+ withoutName: ' The {seriesId} series is a {seriesType}.',
148
+ separator: {
149
+ middle: '',
150
+ end: ''
151
+ }
152
+ }
153
+ },
154
+ data: {
155
+ allData: 'The data is as follows: ',
156
+ partialData: 'The first {displayCnt} items are: ',
157
+ withName: 'the data for {name} is {value}',
158
+ withoutName: '{value}',
159
+ separator: {
160
+ middle: ', ',
161
+ end: '. '
162
+ }
163
+ }
164
+ }
165
+ };
166
+
167
+ echarts.registerLocale('EN', localeObj);
168
+
169
+ });
@@ -0,0 +1,111 @@
1
+
2
+
3
+ /*
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+
23
+ /**
24
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
25
+ */
26
+ (function(root, factory) {
27
+ if (typeof define === 'function' && define.amd) {
28
+ // AMD. Register as an anonymous module.
29
+ define(['exports'], factory);
30
+ } else if (
31
+ typeof exports === 'object' &&
32
+ typeof exports.nodeName !== 'string'
33
+ ) {
34
+ // CommonJS
35
+ factory(exports);
36
+ } else {
37
+ // Browser globals
38
+ factory({});
39
+ }
40
+ })(this, function(exports) {
41
+
42
+
43
+ var localeObj = {
44
+ time: {
45
+ month: [
46
+ 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio',
47
+ 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'
48
+ ],
49
+ monthAbbr: [
50
+ 'ene', 'feb', 'mar', 'abr', 'may', 'jun',
51
+ 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'
52
+ ],
53
+ dayOfWeek: [
54
+ 'domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'
55
+ ],
56
+ dayOfWeekAbbr: [
57
+ 'dom', 'lun', 'mar', 'mie', 'jue', 'vie', 'sáb'
58
+ ]
59
+ },
60
+ legend: {
61
+ selector: {
62
+ all: 'Todas',
63
+ inverse: 'Inversa'
64
+ }
65
+ },
66
+ toolbox: {
67
+ brush: {
68
+ title: {
69
+ rect: 'Selección de cuadro',
70
+ polygon: 'Selección de lazo',
71
+ lineX: 'Seleccionar horizontalmente',
72
+ lineY: 'Seleccionar verticalmente',
73
+ keep: 'Mantener selección',
74
+ clear: 'Despejar selecciones'
75
+ }
76
+ },
77
+ dataView: {
78
+ title: 'Ver datos',
79
+ lang: ['Ver datos', 'Cerrar', 'Actualizar']
80
+ },
81
+ dataZoom: {
82
+ title: {
83
+ zoom: 'Zoom',
84
+ back: 'Restablecer zoom'
85
+ }
86
+ },
87
+ magicType: {
88
+ title: {
89
+ line: 'Cambiar a gráfico de líneas',
90
+ bar: 'Cambiar a gráfico de barras',
91
+ stack: 'Pila',
92
+ tiled: 'Teja'
93
+ }
94
+ },
95
+ restore: {
96
+ title: 'Restaurar'
97
+ },
98
+ saveAsImage: {
99
+ title: 'Guardar como imagen',
100
+ lang: ['Clic derecho para guardar imagen']
101
+ }
102
+ }
103
+ };
104
+
105
+ for (var key in localeObj) {
106
+ if (localeObj.hasOwnProperty(key)) {
107
+ exports[key] = localeObj[key];
108
+ }
109
+ }
110
+
111
+ });
@@ -0,0 +1,107 @@
1
+
2
+
3
+ /*
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+
23
+ /**
24
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
25
+ */
26
+ (function(root, factory) {
27
+ if (typeof define === 'function' && define.amd) {
28
+ // AMD. Register as an anonymous module.
29
+ define(['exports', 'echarts'], factory);
30
+ } else if (
31
+ typeof exports === 'object' &&
32
+ typeof exports.nodeName !== 'string'
33
+ ) {
34
+ // CommonJS
35
+ factory(exports, require('echarts/lib/echarts'));
36
+ } else {
37
+ // Browser globals
38
+ factory({}, root.echarts);
39
+ }
40
+ })(this, function(exports, echarts) {
41
+
42
+
43
+ var localeObj = {
44
+ time: {
45
+ month: [
46
+ 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio',
47
+ 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'
48
+ ],
49
+ monthAbbr: [
50
+ 'ene', 'feb', 'mar', 'abr', 'may', 'jun',
51
+ 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'
52
+ ],
53
+ dayOfWeek: [
54
+ 'domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'
55
+ ],
56
+ dayOfWeekAbbr: [
57
+ 'dom', 'lun', 'mar', 'mie', 'jue', 'vie', 'sáb'
58
+ ]
59
+ },
60
+ legend: {
61
+ selector: {
62
+ all: 'Todas',
63
+ inverse: 'Inversa'
64
+ }
65
+ },
66
+ toolbox: {
67
+ brush: {
68
+ title: {
69
+ rect: 'Selección de cuadro',
70
+ polygon: 'Selección de lazo',
71
+ lineX: 'Seleccionar horizontalmente',
72
+ lineY: 'Seleccionar verticalmente',
73
+ keep: 'Mantener selección',
74
+ clear: 'Despejar selecciones'
75
+ }
76
+ },
77
+ dataView: {
78
+ title: 'Ver datos',
79
+ lang: ['Ver datos', 'Cerrar', 'Actualizar']
80
+ },
81
+ dataZoom: {
82
+ title: {
83
+ zoom: 'Zoom',
84
+ back: 'Restablecer zoom'
85
+ }
86
+ },
87
+ magicType: {
88
+ title: {
89
+ line: 'Cambiar a gráfico de líneas',
90
+ bar: 'Cambiar a gráfico de barras',
91
+ stack: 'Pila',
92
+ tiled: 'Teja'
93
+ }
94
+ },
95
+ restore: {
96
+ title: 'Restaurar'
97
+ },
98
+ saveAsImage: {
99
+ title: 'Guardar como imagen',
100
+ lang: ['Clic derecho para guardar imagen']
101
+ }
102
+ }
103
+ };
104
+
105
+ echarts.registerLocale('ES', localeObj);
106
+
107
+ });
@@ -0,0 +1,111 @@
1
+
2
+
3
+ /*
4
+ * Licensed to the Apache Software Foundation (ASF) under one
5
+ * or more contributor license agreements. See the NOTICE file
6
+ * distributed with this work for additional information
7
+ * regarding copyright ownership. The ASF licenses this file
8
+ * to you under the Apache License, Version 2.0 (the
9
+ * "License"); you may not use this file except in compliance
10
+ * with the License. You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+
22
+
23
+ /**
24
+ * AUTO-GENERATED FILE. DO NOT MODIFY.
25
+ */
26
+ (function(root, factory) {
27
+ if (typeof define === 'function' && define.amd) {
28
+ // AMD. Register as an anonymous module.
29
+ define(['exports'], factory);
30
+ } else if (
31
+ typeof exports === 'object' &&
32
+ typeof exports.nodeName !== 'string'
33
+ ) {
34
+ // CommonJS
35
+ factory(exports);
36
+ } else {
37
+ // Browser globals
38
+ factory({});
39
+ }
40
+ })(this, function(exports) {
41
+
42
+
43
+ var localeObj = {
44
+ time: {
45
+ month: [
46
+ 'tammikuuta', 'helmikuuta', 'maaliskuuta', 'huhtikuuta', 'toukokuuta', 'kesäkuuta',
47
+ 'heinäkuuta', 'elokuuta', 'syyskuuta', 'lokakuuta', 'marraskuuta', 'joulukuuta'
48
+ ],
49
+ monthAbbr: [
50
+ 'tammik', 'helmik', 'maalisk', 'huhtik', 'toukok', 'kesäk',
51
+ 'heinäk', 'elok', 'syysk', 'lokak', 'marrask', 'jouluk'
52
+ ],
53
+ dayOfWeek: [
54
+ 'sunnuntaina', 'maanantaina', 'tiistaina', 'keskiviikkona', 'torstaina', 'perjantaina', 'lauantaina'
55
+ ],
56
+ dayOfWeekAbbr: [
57
+ 'su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'
58
+ ]
59
+ },
60
+ legend: {
61
+ selector: {
62
+ all: 'Kaikki',
63
+ inverse: 'Käänteinen'
64
+ }
65
+ },
66
+ toolbox: {
67
+ brush: {
68
+ title: {
69
+ rect: 'Laatikko valinta',
70
+ polygon: 'Lasso valinta',
71
+ lineX: 'Vaakataso valinta',
72
+ lineY: 'Pysty valinta',
73
+ keep: 'Pidä valinta',
74
+ clear: 'Poista valinta'
75
+ }
76
+ },
77
+ dataView: {
78
+ title: 'Data näkymä',
79
+ lang: ['Data näkymä', 'Sulje', 'Päivitä']
80
+ },
81
+ dataZoom: {
82
+ title: {
83
+ zoom: 'Zoomaa',
84
+ back: 'Zoomin nollaus'
85
+ }
86
+ },
87
+ magicType: {
88
+ title: {
89
+ line: 'Vaihda Viivakaavioon',
90
+ bar: 'Vaihda palkkikaavioon',
91
+ stack: 'Pinoa',
92
+ tiled: 'Erottele'
93
+ }
94
+ },
95
+ restore: {
96
+ title: 'Palauta'
97
+ },
98
+ saveAsImage: {
99
+ title: 'Tallenna kuvana',
100
+ lang: ['Paina oikeaa hiirennappia tallentaaksesi kuva']
101
+ }
102
+ }
103
+ };
104
+
105
+ for (var key in localeObj) {
106
+ if (localeObj.hasOwnProperty(key)) {
107
+ exports[key] = localeObj[key];
108
+ }
109
+ }
110
+
111
+ });