sh-chart 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +21 -0
- package/README.en.md +36 -0
- package/README.md +39 -0
- package/package.json +42 -0
- package/packages/components/global-components/mixin/autoResize.js +152 -0
- package/packages/components/global-components/sh-border/components/border1.vue +70 -0
- package/packages/components/global-components/sh-border/components/border10.vue +54 -0
- package/packages/components/global-components/sh-border/components/border11.vue +207 -0
- package/packages/components/global-components/sh-border/components/border12.vue +112 -0
- package/packages/components/global-components/sh-border/components/border13.vue +50 -0
- package/packages/components/global-components/sh-border/components/border2.vue +50 -0
- package/packages/components/global-components/sh-border/components/border3.vue +53 -0
- package/packages/components/global-components/sh-border/components/border4.vue +95 -0
- package/packages/components/global-components/sh-border/components/border5.vue +64 -0
- package/packages/components/global-components/sh-border/components/border6.vue +60 -0
- package/packages/components/global-components/sh-border/components/border7.vue +57 -0
- package/packages/components/global-components/sh-border/components/border8.vue +75 -0
- package/packages/components/global-components/sh-border/components/border9.vue +92 -0
- package/packages/components/global-components/sh-border/index.vue +73 -0
- package/packages/components/global-components/sh-border/mixin/border.js +62 -0
- package/packages/components/global-components/sh-charts/config/config.js +58 -0
- package/packages/components/global-components/sh-charts/index.vue +169 -0
- package/packages/components/global-components/sh-decoration/components/decoration1.vue +81 -0
- package/packages/components/global-components/sh-decoration/components/decoration10.vue +80 -0
- package/packages/components/global-components/sh-decoration/components/decoration11.vue +63 -0
- package/packages/components/global-components/sh-decoration/components/decoration12.vue +171 -0
- package/packages/components/global-components/sh-decoration/components/decoration2.vue +78 -0
- package/packages/components/global-components/sh-decoration/components/decoration3.vue +65 -0
- package/packages/components/global-components/sh-decoration/components/decoration4.vue +72 -0
- package/packages/components/global-components/sh-decoration/components/decoration5.vue +96 -0
- package/packages/components/global-components/sh-decoration/components/decoration6.vue +84 -0
- package/packages/components/global-components/sh-decoration/components/decoration7.vue +31 -0
- package/packages/components/global-components/sh-decoration/components/decoration8.vue +32 -0
- package/packages/components/global-components/sh-decoration/components/decoration9.vue +63 -0
- package/packages/components/global-components/sh-decoration/index.vue +71 -0
- package/packages/components/global-components/sh-decoration/mixin/decoration.js +69 -0
- package/packages/components/global-components/sh-screen-header/components/header1.vue +228 -0
- package/packages/components/global-components/sh-screen-header/components/header2.vue +285 -0
- package/packages/components/global-components/sh-screen-header/components/header3.vue +452 -0
- package/packages/components/global-components/sh-screen-header/components/header4.vue +544 -0
- package/packages/components/global-components/sh-screen-header/components/header5.vue +291 -0
- package/packages/components/global-components/sh-screen-header/components/header6.vue +206 -0
- package/packages/components/global-components/sh-screen-header/index.vue +50 -0
- package/packages/components/global-components/sh-screen-header/mixin/header.js +62 -0
- package/packages/components/global-components/sh-spin/index.vue +44 -0
- package/packages/components/index.js +24 -0
- package/packages/echarts/index.js +94 -0
- package/packages/echarts/map/110000.json +1 -0
- package/packages/echarts/map/120000.json +1 -0
- package/packages/echarts/map/130000.json +1 -0
- package/packages/echarts/map/140000.json +1 -0
- package/packages/echarts/map/150000.json +1 -0
- package/packages/echarts/map/210000.json +1 -0
- package/packages/echarts/map/220000.json +1 -0
- package/packages/echarts/map/230000.json +1 -0
- package/packages/echarts/map/310000.json +1 -0
- package/packages/echarts/map/320000.json +1 -0
- package/packages/echarts/map/330000.json +1 -0
- package/packages/echarts/map/340000.json +1 -0
- package/packages/echarts/map/350000.json +1 -0
- package/packages/echarts/map/360000.json +1 -0
- package/packages/echarts/map/370000.json +1 -0
- package/packages/echarts/map/410000.json +1 -0
- package/packages/echarts/map/420000.json +1 -0
- package/packages/echarts/map/430000.json +1 -0
- package/packages/echarts/map/440000.json +1 -0
- package/packages/echarts/map/450000.json +1 -0
- package/packages/echarts/map/460000.json +1 -0
- package/packages/echarts/map/500000.json +1 -0
- package/packages/echarts/map/510000.json +1 -0
- package/packages/echarts/map/520000.json +1 -0
- package/packages/echarts/map/530000.json +1 -0
- package/packages/echarts/map/540000.json +1 -0
- package/packages/echarts/map/610000.json +1 -0
- package/packages/echarts/map/620000.json +1 -0
- package/packages/echarts/map/630000.json +1 -0
- package/packages/echarts/map/640000.json +1 -0
- package/packages/echarts/map/650000.json +1 -0
- package/packages/echarts/map/710000.json +1 -0
- package/packages/echarts/map/china.json +1 -0
- package/packages/echarts/theme/dark.js +128 -0
- package/packages/echarts/theme/infographic.js +181 -0
- package/packages/echarts/theme/macarons.js +194 -0
- package/packages/echarts/theme/roma.js +66 -0
- package/packages/echarts/theme/shine.js +136 -0
- package/packages/echarts/theme/vintage.js +11 -0
- package/packages/index.js +31 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
const contrastColor = '#eee'
|
|
2
|
+
const axisCommon = function () {
|
|
3
|
+
return {
|
|
4
|
+
axisLine: {
|
|
5
|
+
lineStyle: {
|
|
6
|
+
color: contrastColor
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
axisTick: {
|
|
10
|
+
lineStyle: {
|
|
11
|
+
color: contrastColor
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
axisLabel: {
|
|
15
|
+
textStyle: {
|
|
16
|
+
color: contrastColor
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
splitLine: {
|
|
20
|
+
lineStyle: {
|
|
21
|
+
type: 'dashed',
|
|
22
|
+
color: '#aaa'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
splitArea: {
|
|
26
|
+
areaStyle: {
|
|
27
|
+
color: contrastColor
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const colorPalette = ['#dd6b66', '#759aa0', '#e69d87', '#8dc1a9', '#ea7e53', '#eedd78', '#73a373', '#73b9bc', '#7289ab', '#91ca8c', '#f49f42']
|
|
34
|
+
|
|
35
|
+
const theme = {
|
|
36
|
+
color: colorPalette,
|
|
37
|
+
backgroundColor: '#333',
|
|
38
|
+
tooltip: {
|
|
39
|
+
axisPointer: {
|
|
40
|
+
lineStyle: {
|
|
41
|
+
color: contrastColor
|
|
42
|
+
},
|
|
43
|
+
crossStyle: {
|
|
44
|
+
color: contrastColor
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
legend: {
|
|
49
|
+
textStyle: {
|
|
50
|
+
color: contrastColor
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
textStyle: {
|
|
54
|
+
color: contrastColor
|
|
55
|
+
},
|
|
56
|
+
title: {
|
|
57
|
+
textStyle: {
|
|
58
|
+
color: contrastColor
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
toolbox: {
|
|
62
|
+
iconStyle: {
|
|
63
|
+
normal: {
|
|
64
|
+
borderColor: contrastColor
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
dataZoom: {
|
|
69
|
+
textStyle: {
|
|
70
|
+
color: contrastColor
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
timeline: {
|
|
74
|
+
lineStyle: {
|
|
75
|
+
color: contrastColor
|
|
76
|
+
},
|
|
77
|
+
itemStyle: {
|
|
78
|
+
normal: {
|
|
79
|
+
color: colorPalette[1]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
label: {
|
|
83
|
+
normal: {
|
|
84
|
+
textStyle: {
|
|
85
|
+
color: contrastColor
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
controlStyle: {
|
|
90
|
+
normal: {
|
|
91
|
+
color: contrastColor,
|
|
92
|
+
borderColor: contrastColor
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
timeAxis: axisCommon(),
|
|
97
|
+
logAxis: axisCommon(),
|
|
98
|
+
valueAxis: axisCommon(),
|
|
99
|
+
categoryAxis: axisCommon(),
|
|
100
|
+
|
|
101
|
+
line: {
|
|
102
|
+
symbol: 'circle'
|
|
103
|
+
},
|
|
104
|
+
graph: {
|
|
105
|
+
color: colorPalette
|
|
106
|
+
},
|
|
107
|
+
gauge: {
|
|
108
|
+
title: {
|
|
109
|
+
textStyle: {
|
|
110
|
+
color: contrastColor
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
candlestick: {
|
|
115
|
+
itemStyle: {
|
|
116
|
+
normal: {
|
|
117
|
+
color: '#FD1050',
|
|
118
|
+
color0: '#0CF49B',
|
|
119
|
+
borderColor: '#FD1050',
|
|
120
|
+
borderColor0: '#0CF49B'
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
theme.categoryAxis.splitLine.show = false
|
|
127
|
+
|
|
128
|
+
export default theme
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
const colorPalette = ['#C1232B', '#27727B', '#FCCE10', '#E87C25', '#B5C334', '#FE8463', '#9BCA63', '#FAD860', '#F3A43B', '#60C0DD', '#D7504B', '#C6E579', '#F4E001', '#F0805A', '#26C0C0']
|
|
2
|
+
|
|
3
|
+
const theme = {
|
|
4
|
+
color: colorPalette,
|
|
5
|
+
|
|
6
|
+
title: {
|
|
7
|
+
textStyle: {
|
|
8
|
+
fontWeight: 'normal',
|
|
9
|
+
color: '#27727B'
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
visualMap: {
|
|
14
|
+
color: ['#C1232B', '#FCCE10']
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
toolbox: {
|
|
18
|
+
iconStyle: {
|
|
19
|
+
normal: {
|
|
20
|
+
borderColor: colorPalette[0]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
tooltip: {
|
|
26
|
+
backgroundColor: 'rgba(50,50,50,0.5)',
|
|
27
|
+
axisPointer: {
|
|
28
|
+
type: 'line',
|
|
29
|
+
lineStyle: {
|
|
30
|
+
color: '#27727B',
|
|
31
|
+
type: 'dashed'
|
|
32
|
+
},
|
|
33
|
+
crossStyle: {
|
|
34
|
+
color: '#27727B'
|
|
35
|
+
},
|
|
36
|
+
shadowStyle: {
|
|
37
|
+
color: 'rgba(200,200,200,0.3)'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
dataZoom: {
|
|
43
|
+
dataBackgroundColor: 'rgba(181,195,52,0.3)',
|
|
44
|
+
fillerColor: 'rgba(181,195,52,0.2)',
|
|
45
|
+
handleColor: '#27727B'
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
categoryAxis: {
|
|
49
|
+
axisLine: {
|
|
50
|
+
lineStyle: {
|
|
51
|
+
color: '#27727B'
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
splitLine: {
|
|
55
|
+
show: false
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
valueAxis: {
|
|
60
|
+
axisLine: {
|
|
61
|
+
show: false
|
|
62
|
+
},
|
|
63
|
+
splitArea: {
|
|
64
|
+
show: false
|
|
65
|
+
},
|
|
66
|
+
splitLine: {
|
|
67
|
+
lineStyle: {
|
|
68
|
+
color: ['#ccc'],
|
|
69
|
+
type: 'dashed'
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
timeline: {
|
|
75
|
+
lineStyle: {
|
|
76
|
+
color: '#27727B'
|
|
77
|
+
},
|
|
78
|
+
controlStyle: {
|
|
79
|
+
normal: {
|
|
80
|
+
color: '#27727B',
|
|
81
|
+
borderColor: '#27727B'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
symbol: 'emptyCircle',
|
|
85
|
+
symbolSize: 3
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
line: {
|
|
89
|
+
itemStyle: {
|
|
90
|
+
normal: {
|
|
91
|
+
borderWidth: 2,
|
|
92
|
+
borderColor: '#fff',
|
|
93
|
+
lineStyle: {
|
|
94
|
+
width: 3
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
emphasis: {
|
|
98
|
+
borderWidth: 0
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
symbol: 'circle',
|
|
102
|
+
symbolSize: 3.5
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
candlestick: {
|
|
106
|
+
itemStyle: {
|
|
107
|
+
normal: {
|
|
108
|
+
color: '#C1232B',
|
|
109
|
+
color0: '#B5C334',
|
|
110
|
+
lineStyle: {
|
|
111
|
+
width: 1,
|
|
112
|
+
color: '#C1232B',
|
|
113
|
+
color0: '#B5C334'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
|
|
119
|
+
graph: {
|
|
120
|
+
color: colorPalette
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
map: {
|
|
124
|
+
label: {
|
|
125
|
+
normal: {
|
|
126
|
+
textStyle: {
|
|
127
|
+
color: '#C1232B'
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
emphasis: {
|
|
131
|
+
textStyle: {
|
|
132
|
+
color: 'rgb(100,0,0)'
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
itemStyle: {
|
|
137
|
+
normal: {
|
|
138
|
+
areaColor: '#ddd',
|
|
139
|
+
borderColor: '#eee'
|
|
140
|
+
},
|
|
141
|
+
emphasis: {
|
|
142
|
+
areaColor: '#fe994e'
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
gauge: {
|
|
148
|
+
axisLine: {
|
|
149
|
+
lineStyle: {
|
|
150
|
+
color: [
|
|
151
|
+
[0.2, '#B5C334'],
|
|
152
|
+
[0.8, '#27727B'],
|
|
153
|
+
[1, '#C1232B']
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
axisTick: {
|
|
158
|
+
splitNumber: 2,
|
|
159
|
+
length: 5,
|
|
160
|
+
lineStyle: {
|
|
161
|
+
color: '#fff'
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
axisLabel: {
|
|
165
|
+
textStyle: {
|
|
166
|
+
color: '#fff'
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
splitLine: {
|
|
170
|
+
length: '5%',
|
|
171
|
+
lineStyle: {
|
|
172
|
+
color: '#fff'
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
title: {
|
|
176
|
+
offsetCenter: [0, -20]
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export default theme
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
const colorPalette = [
|
|
2
|
+
'#2ec7c9',
|
|
3
|
+
'#b6a2de',
|
|
4
|
+
'#5ab1ef',
|
|
5
|
+
'#ffb980',
|
|
6
|
+
'#d87a80',
|
|
7
|
+
'#8d98b3',
|
|
8
|
+
'#e5cf0d',
|
|
9
|
+
'#97b552',
|
|
10
|
+
'#95706d',
|
|
11
|
+
'#dc69aa',
|
|
12
|
+
'#07a2a4',
|
|
13
|
+
'#9a7fd1',
|
|
14
|
+
'#588dd5',
|
|
15
|
+
'#f5994e',
|
|
16
|
+
'#c05050',
|
|
17
|
+
'#59678c',
|
|
18
|
+
'#c9ab00',
|
|
19
|
+
'#7eb00a',
|
|
20
|
+
'#6f5553',
|
|
21
|
+
'#c14089'
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
const theme = {
|
|
25
|
+
color: colorPalette,
|
|
26
|
+
|
|
27
|
+
title: {
|
|
28
|
+
textStyle: {
|
|
29
|
+
fontWeight: 'normal',
|
|
30
|
+
color: '#008acd'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
visualMap: {
|
|
35
|
+
itemWidth: 15,
|
|
36
|
+
color: ['#5ab1ef', '#e0ffff']
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
toolbox: {
|
|
40
|
+
iconStyle: {
|
|
41
|
+
normal: {
|
|
42
|
+
borderColor: colorPalette[0]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
tooltip: {
|
|
48
|
+
backgroundColor: 'rgba(50,50,50,0.5)',
|
|
49
|
+
axisPointer: {
|
|
50
|
+
type: 'line',
|
|
51
|
+
lineStyle: {
|
|
52
|
+
color: '#008acd'
|
|
53
|
+
},
|
|
54
|
+
crossStyle: {
|
|
55
|
+
color: '#008acd'
|
|
56
|
+
},
|
|
57
|
+
shadowStyle: {
|
|
58
|
+
color: 'rgba(200,200,200,0.2)'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
dataZoom: {
|
|
64
|
+
dataBackgroundColor: '#efefff',
|
|
65
|
+
fillerColor: 'rgba(182,162,222,0.2)',
|
|
66
|
+
handleColor: '#008acd'
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
grid: {
|
|
70
|
+
borderColor: '#eee'
|
|
71
|
+
},
|
|
72
|
+
|
|
73
|
+
categoryAxis: {
|
|
74
|
+
axisLine: {
|
|
75
|
+
lineStyle: {
|
|
76
|
+
color: '#008acd'
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
splitLine: {
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: ['#eee']
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
valueAxis: {
|
|
87
|
+
axisLine: {
|
|
88
|
+
lineStyle: {
|
|
89
|
+
color: '#008acd'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
splitArea: {
|
|
93
|
+
show: true,
|
|
94
|
+
areaStyle: {
|
|
95
|
+
color: ['rgba(250,250,250,0.1)', 'rgba(200,200,200,0.1)']
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
splitLine: {
|
|
99
|
+
lineStyle: {
|
|
100
|
+
color: ['#eee']
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
timeline: {
|
|
106
|
+
lineStyle: {
|
|
107
|
+
color: '#008acd'
|
|
108
|
+
},
|
|
109
|
+
controlStyle: {
|
|
110
|
+
normal: { color: '#008acd' },
|
|
111
|
+
emphasis: { color: '#008acd' }
|
|
112
|
+
},
|
|
113
|
+
symbol: 'emptyCircle',
|
|
114
|
+
symbolSize: 3
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
line: {
|
|
118
|
+
smooth: true,
|
|
119
|
+
symbol: 'emptyCircle',
|
|
120
|
+
symbolSize: 3
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
candlestick: {
|
|
124
|
+
itemStyle: {
|
|
125
|
+
normal: {
|
|
126
|
+
color: '#d87a80',
|
|
127
|
+
color0: '#2ec7c9',
|
|
128
|
+
lineStyle: {
|
|
129
|
+
color: '#d87a80',
|
|
130
|
+
color0: '#2ec7c9'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
|
|
136
|
+
scatter: {
|
|
137
|
+
symbol: 'circle',
|
|
138
|
+
symbolSize: 4
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
map: {
|
|
142
|
+
label: {
|
|
143
|
+
normal: {
|
|
144
|
+
textStyle: {
|
|
145
|
+
color: '#d87a80'
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
itemStyle: {
|
|
150
|
+
normal: {
|
|
151
|
+
borderColor: '#eee',
|
|
152
|
+
areaColor: '#ddd'
|
|
153
|
+
},
|
|
154
|
+
emphasis: {
|
|
155
|
+
areaColor: '#fe994e'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
|
|
160
|
+
graph: {
|
|
161
|
+
color: colorPalette
|
|
162
|
+
},
|
|
163
|
+
|
|
164
|
+
gauge: {
|
|
165
|
+
axisLine: {
|
|
166
|
+
lineStyle: {
|
|
167
|
+
color: [
|
|
168
|
+
[0.2, '#2ec7c9'],
|
|
169
|
+
[0.8, '#5ab1ef'],
|
|
170
|
+
[1, '#d87a80']
|
|
171
|
+
],
|
|
172
|
+
width: 10
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
axisTick: {
|
|
176
|
+
splitNumber: 10,
|
|
177
|
+
length: 15,
|
|
178
|
+
lineStyle: {
|
|
179
|
+
color: 'auto'
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
splitLine: {
|
|
183
|
+
length: 22,
|
|
184
|
+
lineStyle: {
|
|
185
|
+
color: 'auto'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
pointer: {
|
|
189
|
+
width: 5
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export default theme
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const colorPalette = [
|
|
2
|
+
'#E01F54',
|
|
3
|
+
'#001852',
|
|
4
|
+
'#f5e8c8',
|
|
5
|
+
'#b8d2c7',
|
|
6
|
+
'#c6b38e',
|
|
7
|
+
'#a4d8c2',
|
|
8
|
+
'#f3d999',
|
|
9
|
+
'#d3758f',
|
|
10
|
+
'#dcc392',
|
|
11
|
+
'#2e4783',
|
|
12
|
+
'#82b6e9',
|
|
13
|
+
'#ff6347',
|
|
14
|
+
'#a092f1',
|
|
15
|
+
'#0a915d',
|
|
16
|
+
'#eaf889',
|
|
17
|
+
'#6699FF',
|
|
18
|
+
'#ff6666',
|
|
19
|
+
'#3cb371',
|
|
20
|
+
'#d5b158',
|
|
21
|
+
'#38b6b6'
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
const theme = {
|
|
25
|
+
color: colorPalette,
|
|
26
|
+
|
|
27
|
+
visualMap: {
|
|
28
|
+
color: ['#e01f54', '#e7dbc3'],
|
|
29
|
+
textStyle: {
|
|
30
|
+
color: '#333'
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
candlestick: {
|
|
35
|
+
itemStyle: {
|
|
36
|
+
normal: {
|
|
37
|
+
color: '#e01f54',
|
|
38
|
+
color0: '#001852',
|
|
39
|
+
lineStyle: {
|
|
40
|
+
width: 1,
|
|
41
|
+
color: '#f5e8c8',
|
|
42
|
+
color0: '#b8d2c7'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
graph: {
|
|
49
|
+
color: colorPalette
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
gauge: {
|
|
53
|
+
axisLine: {
|
|
54
|
+
lineStyle: {
|
|
55
|
+
color: [
|
|
56
|
+
[0.2, '#E01F54'],
|
|
57
|
+
[0.8, '#b8d2c7'],
|
|
58
|
+
[1, '#001852']
|
|
59
|
+
],
|
|
60
|
+
width: 8
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default theme
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
const colorPalette = ['#c12e34', '#e6b600', '#0098d9', '#2b821d', '#005eaa', '#339ca8', '#cda819', '#32a487']
|
|
2
|
+
|
|
3
|
+
const theme = {
|
|
4
|
+
color: colorPalette,
|
|
5
|
+
|
|
6
|
+
title: {
|
|
7
|
+
textStyle: {
|
|
8
|
+
fontWeight: 'normal'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
visualMap: {
|
|
13
|
+
color: ['#1790cf', '#a2d4e6']
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
toolbox: {
|
|
17
|
+
iconStyle: {
|
|
18
|
+
normal: {
|
|
19
|
+
borderColor: '#06467c'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
tooltip: {
|
|
25
|
+
backgroundColor: 'rgba(0,0,0,0.6)'
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
dataZoom: {
|
|
29
|
+
dataBackgroundColor: '#dedede',
|
|
30
|
+
fillerColor: 'rgba(154,217,247,0.2)',
|
|
31
|
+
handleColor: '#005eaa'
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
timeline: {
|
|
35
|
+
lineStyle: {
|
|
36
|
+
color: '#005eaa'
|
|
37
|
+
},
|
|
38
|
+
controlStyle: {
|
|
39
|
+
normal: {
|
|
40
|
+
color: '#005eaa',
|
|
41
|
+
borderColor: '#005eaa'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
candlestick: {
|
|
47
|
+
itemStyle: {
|
|
48
|
+
normal: {
|
|
49
|
+
color: '#c12e34',
|
|
50
|
+
color0: '#2b821d',
|
|
51
|
+
lineStyle: {
|
|
52
|
+
width: 1,
|
|
53
|
+
color: '#c12e34',
|
|
54
|
+
color0: '#2b821d'
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
graph: {
|
|
61
|
+
color: colorPalette
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
map: {
|
|
65
|
+
label: {
|
|
66
|
+
normal: {
|
|
67
|
+
textStyle: {
|
|
68
|
+
color: '#c12e34'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
emphasis: {
|
|
72
|
+
textStyle: {
|
|
73
|
+
color: '#c12e34'
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
itemStyle: {
|
|
78
|
+
normal: {
|
|
79
|
+
borderColor: '#eee',
|
|
80
|
+
areaColor: '#ddd'
|
|
81
|
+
},
|
|
82
|
+
emphasis: {
|
|
83
|
+
areaColor: '#e6b600'
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
|
|
88
|
+
gauge: {
|
|
89
|
+
axisLine: {
|
|
90
|
+
show: true,
|
|
91
|
+
lineStyle: {
|
|
92
|
+
color: [
|
|
93
|
+
[0.2, '#2b821d'],
|
|
94
|
+
[0.8, '#005eaa'],
|
|
95
|
+
[1, '#c12e34']
|
|
96
|
+
],
|
|
97
|
+
width: 5
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
axisTick: {
|
|
101
|
+
splitNumber: 10,
|
|
102
|
+
length: 8,
|
|
103
|
+
lineStyle: {
|
|
104
|
+
color: 'auto'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
axisLabel: {
|
|
108
|
+
textStyle: {
|
|
109
|
+
color: 'auto'
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
splitLine: {
|
|
113
|
+
length: 12,
|
|
114
|
+
lineStyle: {
|
|
115
|
+
color: 'auto'
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
pointer: {
|
|
119
|
+
length: '90%',
|
|
120
|
+
width: 3,
|
|
121
|
+
color: 'auto'
|
|
122
|
+
},
|
|
123
|
+
title: {
|
|
124
|
+
textStyle: {
|
|
125
|
+
color: '#333'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
detail: {
|
|
129
|
+
textStyle: {
|
|
130
|
+
color: 'auto'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export default theme
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const colorPalette = ['#d87c7c', '#919e8b', '#d7ab82', '#6e7074', '#61a0a8', '#efa18d', '#787464', '#cc7e63', '#724e58', '#4b565b']
|
|
2
|
+
|
|
3
|
+
const theme = {
|
|
4
|
+
color: colorPalette,
|
|
5
|
+
backgroundColor: '#fef8ef',
|
|
6
|
+
graph: {
|
|
7
|
+
color: colorPalette
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default theme
|