1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
  | (function (root, factory) { 
 |      if (typeof define === 'function' && define.amd) { 
 |          // AMD. Register as an anonymous module. 
 |          define(['exports', 'echarts'], factory); 
 |      } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') { 
 |          // CommonJS 
 |          factory(exports, require('echarts')); 
 |      } else { 
 |          // Browser globals 
 |          factory({}, root.echarts); 
 |      } 
 |  }(this, function (exports, echarts) { 
 |      var log = function (msg) { 
 |          if (typeof console !== 'undefined') { 
 |              console && console.error && console.error(msg); 
 |          } 
 |      }; 
 |      if (!echarts) { 
 |          log('ECharts is not Loaded'); 
 |          return; 
 |      } 
 |    
 |      var colorPalette = [ 
 |          '#2ec7c9','#b6a2de','#5ab1ef','#ffb980','#d87a80', 
 |          '#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa', 
 |          '#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050', 
 |          '#59678c','#c9ab00','#7eb00a','#6f5553','#c14089' 
 |      ]; 
 |    
 |    
 |      var theme = { 
 |          color: colorPalette, 
 |    
 |          title: { 
 |              textStyle: { 
 |                  fontWeight: 'normal', 
 |                  color: '#008acd' 
 |              } 
 |          }, 
 |    
 |          visualMap: { 
 |              itemWidth: 15, 
 |              color: ['#5ab1ef','#e0ffff'] 
 |          }, 
 |    
 |          toolbox: { 
 |              iconStyle: { 
 |                  normal: { 
 |                      borderColor: colorPalette[0] 
 |                  } 
 |              } 
 |          }, 
 |    
 |          tooltip: { 
 |              backgroundColor: 'rgba(50,50,50,0.5)', 
 |              axisPointer : { 
 |                  type : 'line', 
 |                  lineStyle : { 
 |                      color: '#008acd' 
 |                  }, 
 |                  crossStyle: { 
 |                      color: '#008acd' 
 |                  }, 
 |                  shadowStyle : { 
 |                      color: 'rgba(200,200,200,0.2)' 
 |                  } 
 |              } 
 |          }, 
 |    
 |          dataZoom: { 
 |              dataBackgroundColor: '#efefff', 
 |              fillerColor: 'rgba(182,162,222,0.2)', 
 |              handleColor: '#008acd' 
 |          }, 
 |    
 |          grid: { 
 |              borderColor: '#eee' 
 |          }, 
 |    
 |          categoryAxis: { 
 |              axisLine: { 
 |                  lineStyle: { 
 |                      color: '#008acd' 
 |                  } 
 |              }, 
 |              splitLine: { 
 |                  lineStyle: { 
 |                      color: ['#eee'] 
 |                  } 
 |              } 
 |          }, 
 |    
 |          valueAxis: { 
 |              axisLine: { 
 |                  lineStyle: { 
 |                      color: '#008acd' 
 |                  } 
 |              }, 
 |              splitArea : { 
 |                  show : true, 
 |                  areaStyle : { 
 |                      color: ['rgba(250,250,250,0.1)','rgba(200,200,200,0.1)'] 
 |                  } 
 |              }, 
 |              splitLine: { 
 |                  lineStyle: { 
 |                      color: ['#eee'] 
 |                  } 
 |              } 
 |          }, 
 |    
 |          timeline : { 
 |              lineStyle : { 
 |                  color : '#008acd' 
 |              }, 
 |              controlStyle : { 
 |                  normal : { color : '#008acd'}, 
 |                  emphasis : { color : '#008acd'} 
 |              }, 
 |              symbol : 'emptyCircle', 
 |              symbolSize : 3 
 |          }, 
 |    
 |          line: { 
 |              smooth : true, 
 |              symbol: 'emptyCircle', 
 |              symbolSize: 3 
 |          }, 
 |    
 |          candlestick: { 
 |              itemStyle: { 
 |                  normal: { 
 |                      color: '#d87a80', 
 |                      color0: '#2ec7c9', 
 |                      lineStyle: { 
 |                          color: '#d87a80', 
 |                          color0: '#2ec7c9' 
 |                      } 
 |                  } 
 |              } 
 |          }, 
 |    
 |          scatter: { 
 |              symbol: 'circle', 
 |              symbolSize: 4 
 |          }, 
 |    
 |          map: { 
 |              label: { 
 |                  normal: { 
 |                      textStyle: { 
 |                          color: '#d87a80' 
 |                      } 
 |                  } 
 |              }, 
 |              itemStyle: { 
 |                  normal: { 
 |                      borderColor: '#eee', 
 |                      areaColor: '#ddd' 
 |                  }, 
 |                  emphasis: { 
 |                      areaColor: '#fe994e' 
 |                  } 
 |              } 
 |          }, 
 |    
 |          graph: { 
 |              color: colorPalette 
 |          }, 
 |    
 |          gauge : { 
 |              axisLine: { 
 |                  lineStyle: { 
 |                      color: [[0.2, '#2ec7c9'],[0.8, '#5ab1ef'],[1, '#d87a80']], 
 |                      width: 10 
 |                  } 
 |              }, 
 |              axisTick: { 
 |                  splitNumber: 10, 
 |                  length :15, 
 |                  lineStyle: { 
 |                      color: 'auto' 
 |                  } 
 |              }, 
 |              splitLine: { 
 |                  length :22, 
 |                  lineStyle: { 
 |                      color: 'auto' 
 |                  } 
 |              }, 
 |              pointer : { 
 |                  width : 5 
 |              } 
 |          } 
 |      }; 
 |    
 |      echarts.registerTheme('macarons', theme); 
 |  })); 
 |  
  |