Skip to content

Commit f27b167

Browse files
committed
add new charts
1 parent 4b4bf49 commit f27b167

File tree

10 files changed

+537
-529
lines changed

10 files changed

+537
-529
lines changed

src/assets/echarts-macarons.js

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

src/components/Charts/barPercent.vue

Lines changed: 0 additions & 104 deletions
This file was deleted.

0 commit comments

Comments
 (0)