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,163 @@
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
+
45
+ var colorPalette = [
46
+ '#3f7ea6',
47
+ '#993366',
48
+ '#408000',
49
+ '#8c6f56',
50
+ '#a65149',
51
+ '#731f17',
52
+ '#adc2eb',
53
+ '#d9c3b0'
54
+ ];
55
+
56
+ var theme = {
57
+ color: colorPalette,
58
+
59
+ title: {
60
+ textStyle: {
61
+ fontWeight: 'normal',
62
+ color: '#3f7ea6'
63
+ }
64
+ },
65
+
66
+ visualMap: {
67
+ color: ['#3f7ea6', '#993366']
68
+ },
69
+
70
+ toolbox: {
71
+ color: ['#3f7ea6', '#3f7ea6', '#3f7ea6', '#3f7ea6']
72
+ },
73
+
74
+ tooltip: {
75
+ backgroundColor: 'rgba(0,0,0,0.5)',
76
+ axisPointer: {
77
+ // Axis indicator, coordinate trigger effective
78
+ type: 'line', // The default is a straight line: 'line' | 'shadow'
79
+ lineStyle: {
80
+ // Straight line indicator style settings
81
+ color: '#3f7ea6',
82
+ type: 'dashed'
83
+ },
84
+ crossStyle: {
85
+ color: '#3f7ea6'
86
+ },
87
+ shadowStyle: {
88
+ // Shadow indicator style settings
89
+ color: 'rgba(200,200,200,0.3)'
90
+ }
91
+ }
92
+ },
93
+
94
+ // Area scaling controller
95
+ dataZoom: {
96
+ dataBackgroundColor: '#eee', // Data background color
97
+ fillerColor: 'rgba(200,200,200,0.2)', // Fill the color
98
+ handleColor: '#3f7ea6' // Handle color
99
+ },
100
+
101
+ timeline: {
102
+ lineStyle: {
103
+ color: '#3f7ea6'
104
+ },
105
+ controlStyle: {
106
+ color: '#3f7ea6',
107
+ borderColor: '#3f7ea6'
108
+ }
109
+ },
110
+
111
+ candlestick: {
112
+ itemStyle: {
113
+ color: '#d9c3b0',
114
+ color0: '#8c6f56'
115
+ },
116
+ lineStyle: {
117
+ width: 1,
118
+ color: '#731f17',
119
+ color0: '#a65149'
120
+ },
121
+ areaStyle: {
122
+ color: '#3f7ea6',
123
+ color0: '#993366'
124
+ }
125
+ },
126
+
127
+ map: {
128
+ itemStyle: {
129
+ color: '#d9c3b0'
130
+ },
131
+ areaStyle: {
132
+ color: '#ddd'
133
+ },
134
+ label: {
135
+ color: '#c12e34'
136
+ }
137
+ },
138
+
139
+ graph: {
140
+ itemStyle: {
141
+ color: '#993366'
142
+ },
143
+ linkStyle: {
144
+ color: '#3f7ea6'
145
+ }
146
+ },
147
+
148
+ gauge: {
149
+ axisLine: {
150
+ lineStyle: {
151
+ color: [
152
+ [0.2, '#d9c3b0'],
153
+ [0.8, '#3f7ea6'],
154
+ [1, '#731f17']
155
+ ],
156
+ width: 8
157
+ }
158
+ }
159
+ }
160
+ };
161
+
162
+ echarts.registerTheme('royal', theme);
163
+ });
@@ -0,0 +1,140 @@
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
+
45
+ var colorPalette = [
46
+ '#e52c3c',
47
+ '#f7b1ab',
48
+ '#fa506c',
49
+ '#f59288',
50
+ '#f8c4d8',
51
+ '#e54f5c',
52
+ '#f06d5c',
53
+ '#e54f80',
54
+ '#f29c9f',
55
+ '#eeb5b7'
56
+ ];
57
+
58
+ var theme = {
59
+ color: colorPalette,
60
+
61
+ title: {
62
+ textStyle: {
63
+ fontWeight: 'normal',
64
+ color: '#e52c3c'
65
+ }
66
+ },
67
+
68
+ visualMap: {
69
+ color: ['#e52c3c', '#f7b1ab']
70
+ },
71
+
72
+ dataRange: {
73
+ color: ['#e52c3c', '#f7b1ab']
74
+ },
75
+
76
+ candlestick: {
77
+ itemStyle: {
78
+ color: '#e52c3c',
79
+ color0: '#f59288'
80
+ },
81
+ lineStyle: {
82
+ width: 1,
83
+ color: '#e52c3c',
84
+ color0: '#f59288'
85
+ },
86
+ areaStyle: {
87
+ color: '#fa506c',
88
+ color0: '#f8c4d8'
89
+ }
90
+ },
91
+
92
+ map: {
93
+ itemStyle: {
94
+ color: '#e52c3c',
95
+ borderColor: '#fff',
96
+ borderWidth: 1
97
+ },
98
+ areaStyle: {
99
+ color: '#ccc'
100
+ },
101
+ label: {
102
+ color: 'rgba(139,69,19,1)',
103
+ show: false
104
+ }
105
+ },
106
+
107
+ graph: {
108
+ itemStyle: {
109
+ color: '#f2385a'
110
+ },
111
+ nodeStyle: {
112
+ brushType: 'both',
113
+ strokeColor: '#e54f5c'
114
+ },
115
+ linkStyle: {
116
+ color: '#f2385a',
117
+ strokeColor: '#e54f5c'
118
+ },
119
+ label: {
120
+ color: '#f2385a',
121
+ show: false
122
+ }
123
+ },
124
+
125
+ gauge: {
126
+ axisLine: {
127
+ lineStyle: {
128
+ color: [
129
+ [0.2, '#e52c3c'],
130
+ [0.8, '#f7b1ab'],
131
+ [1, '#fa506c']
132
+ ],
133
+ width: 8
134
+ }
135
+ }
136
+ }
137
+ };
138
+
139
+ echarts.registerTheme('sakura', theme);
140
+ });
@@ -0,0 +1,177 @@
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
+ (function(root, factory) {
20
+ if (typeof define === 'function' && define.amd) {
21
+ // AMD. Register as an anonymous module.
22
+ define(['exports', 'echarts'], factory);
23
+ } else if (
24
+ typeof exports === 'object' &&
25
+ typeof exports.nodeName !== 'string'
26
+ ) {
27
+ // CommonJS
28
+ factory(exports, require('echarts/lib/echarts'));
29
+ } else {
30
+ // Browser globals
31
+ factory({}, root.echarts);
32
+ }
33
+ })(this, function(exports, echarts) {
34
+ var log = function(msg) {
35
+ if (typeof console !== 'undefined') {
36
+ console && console.error && console.error(msg);
37
+ }
38
+ };
39
+ if (!echarts) {
40
+ log('ECharts is not Loaded');
41
+ return;
42
+ }
43
+
44
+ var colorPalette = [
45
+ '#c12e34',
46
+ '#e6b600',
47
+ '#0098d9',
48
+ '#2b821d',
49
+ '#005eaa',
50
+ '#339ca8',
51
+ '#cda819',
52
+ '#32a487'
53
+ ];
54
+
55
+ var theme = {
56
+ color: colorPalette,
57
+
58
+ title: {
59
+ textStyle: {
60
+ fontWeight: 'normal'
61
+ }
62
+ },
63
+
64
+ visualMap: {
65
+ color: ['#1790cf', '#a2d4e6']
66
+ },
67
+
68
+ toolbox: {
69
+ iconStyle: {
70
+ normal: {
71
+ borderColor: '#06467c'
72
+ }
73
+ }
74
+ },
75
+
76
+ tooltip: {
77
+ backgroundColor: 'rgba(0,0,0,0.6)'
78
+ },
79
+
80
+ dataZoom: {
81
+ dataBackgroundColor: '#dedede',
82
+ fillerColor: 'rgba(154,217,247,0.2)',
83
+ handleColor: '#005eaa'
84
+ },
85
+
86
+ timeline: {
87
+ lineStyle: {
88
+ color: '#005eaa'
89
+ },
90
+ controlStyle: {
91
+ color: '#005eaa',
92
+ borderColor: '#005eaa'
93
+ }
94
+ },
95
+
96
+ candlestick: {
97
+ itemStyle: {
98
+ color: '#c12e34',
99
+ color0: '#2b821d'
100
+ },
101
+ lineStyle: {
102
+ width: 1,
103
+ color: '#c12e34',
104
+ color0: '#2b821d'
105
+ },
106
+ areaStyle: {
107
+ color: '#e6b600',
108
+ color0: '#005eaa'
109
+ }
110
+ },
111
+
112
+ graph: {
113
+ itemStyle: {
114
+ color: '#e6b600'
115
+ },
116
+ linkStyle: {
117
+ color: '#005eaa'
118
+ }
119
+ },
120
+
121
+ map: {
122
+ itemStyle: {
123
+ color: '#f2385a',
124
+ borderColor: '#eee',
125
+ areaColor: '#ddd'
126
+ },
127
+ areaStyle: {
128
+ color: '#ddd'
129
+ },
130
+ label: {
131
+ color: '#c12e34'
132
+ }
133
+ },
134
+
135
+ gauge: {
136
+ axisLine: {
137
+ show: true,
138
+ lineStyle: {
139
+ color: [
140
+ [0.2, '#2b821d'],
141
+ [0.8, '#005eaa'],
142
+ [1, '#c12e34']
143
+ ],
144
+ width: 5
145
+ }
146
+ },
147
+ axisTick: {
148
+ splitNumber: 10,
149
+ length: 8,
150
+ lineStyle: {
151
+ color: 'auto'
152
+ }
153
+ },
154
+ axisLabel: {
155
+ color: 'auto'
156
+ },
157
+ splitLine: {
158
+ length: 12,
159
+ lineStyle: {
160
+ color: 'auto'
161
+ }
162
+ },
163
+ pointer: {
164
+ length: '90%',
165
+ width: 3,
166
+ color: 'auto'
167
+ },
168
+ title: {
169
+ color: '#333'
170
+ },
171
+ detail: {
172
+ color: 'auto'
173
+ }
174
+ }
175
+ };
176
+ echarts.registerTheme('shine', theme);
177
+ });
@@ -0,0 +1,180 @@
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
+
45
+ var colorPalette = [
46
+ '#4d4d4d',
47
+ '#3a5897',
48
+ '#007bb6',
49
+ '#7094db',
50
+ '#0080ff',
51
+ '#b3b3ff',
52
+ '#00bdec',
53
+ '#33ccff',
54
+ '#ccddff',
55
+ '#eeeeee'
56
+ ];
57
+
58
+ var theme = {
59
+ color: colorPalette,
60
+
61
+ title: {
62
+ textStyle: {
63
+ fontWeight: 'normal',
64
+ color: '#00aecd'
65
+ }
66
+ },
67
+
68
+ visualMap: {
69
+ color: ['#00aecd', '#a2d4e6']
70
+ },
71
+
72
+ toolbox: {
73
+ color: ['#00aecd', '#00aecd', '#00aecd', '#00aecd']
74
+ },
75
+
76
+ tooltip: {
77
+ backgroundColor: 'rgba(0,0,0,0.5)',
78
+ axisPointer: {
79
+ // Axis indicator, coordinate trigger effective
80
+ type: 'line', // The default is a straight line: 'line' | 'shadow'
81
+ lineStyle: {
82
+ // Straight line indicator style settings
83
+ color: '#00aecd',
84
+ type: 'dashed'
85
+ },
86
+ crossStyle: {
87
+ color: '#00aecd'
88
+ },
89
+ shadowStyle: {
90
+ // Shadow indicator style settings
91
+ color: 'rgba(200,200,200,0.3)'
92
+ }
93
+ }
94
+ },
95
+
96
+ // Area scaling controller
97
+ dataZoom: {
98
+ dataBackgroundColor: '#eee', // Data background color
99
+ fillerColor: 'rgba(144,197,237,0.2)', // Fill the color
100
+ handleColor: '#00aecd' // Handle color
101
+ },
102
+
103
+ timeline: {
104
+ lineStyle: {
105
+ color: '#00aecd'
106
+ },
107
+ controlStyle: {
108
+ normal: { color: '#00aecd' },
109
+ emphasis: { color: '#00aecd' }
110
+ }
111
+ },
112
+
113
+ candlestick: {
114
+ itemStyle: {
115
+ color: '#ddd',
116
+ color0: '#eee'
117
+ },
118
+ lineStyle: {
119
+ width: 1,
120
+ color: '#33ccff',
121
+ color0: '#1bb4cf'
122
+ },
123
+ areaStyle: {
124
+ color: '#7094db',
125
+ color0: '#33ccff'
126
+ }
127
+ },
128
+
129
+ chord: {
130
+ padding: 4,
131
+ itemStyle: {
132
+ color: '#7094db',
133
+ borderWidth: 1,
134
+ borderColor: 'rgba(128, 128, 128, 0.5)'
135
+ },
136
+ lineStyle: {
137
+ color: 'rgba(128, 128, 128, 0.5)'
138
+ },
139
+ areaStyle: {
140
+ color: '#33ccff'
141
+ }
142
+ },
143
+
144
+ graph: {
145
+ itemStyle: {
146
+ color: '#7094db'
147
+ },
148
+ linkStyle: {
149
+ color: '#33ccff'
150
+ }
151
+ },
152
+
153
+ map: {
154
+ itemStyle: {
155
+ color: '#7094db'
156
+ },
157
+ areaStyle: {
158
+ color: '#33ccff'
159
+ },
160
+ label: {
161
+ color: '#ddd'
162
+ }
163
+ },
164
+
165
+ gauge: {
166
+ axisLine: {
167
+ lineStyle: {
168
+ color: [
169
+ [0.2, '#dddddd'],
170
+ [0.8, '#00aecd'],
171
+ [1, '#33ccff']
172
+ ],
173
+ width: 8
174
+ }
175
+ }
176
+ }
177
+ };
178
+
179
+ echarts.registerTheme('tech-blue', theme);
180
+ });