-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRadar.html
More file actions
223 lines (215 loc) · 5.67 KB
/
Radar.html
File metadata and controls
223 lines (215 loc) · 5.67 KB
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!--
此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=radar-multiple
-->
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
<meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"></div>
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/echarts.min.js"></script>
<!-- Uncomment this line if you want to dataTool extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/dataTool.min.js"></script>
-->
<!-- Uncomment this line if you want to use gl extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts-gl/2/files/dist/echarts-gl.min.js"></script>
-->
<!-- Uncomment this line if you want to echarts-stat extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts-stat/latest/files/dist/ecStat.min.js"></script>
-->
<!-- Uncomment this line if you want to echarts-graph-modularity extension
<script type="text/javascript" src="https://registry.npmmirror.com/echarts-graph-modularity/2/files/dist/echarts-graph-modularity.min.js"></script>
-->
<!-- Uncomment this line if you want to use map
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/4.9.0/files/map/js/world.js"></script>
-->
<!-- Uncomment these two lines if you want to use bmap extension
<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
<script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/bmap.min.js"></script>
-->
<script type="text/javascript">
var dom = document.getElementById('container');
var myChart = echarts.init(dom, null, {
renderer: 'canvas',
useDirtyRect: false
});
var app = {};
var option;
option = {
title: [
{
text: 'SMB网络市场主要竞品评分对比',
left: 'center',
top: '5%'
},
{
text: '市场竞争力',
left: '20%',
top: '70%',
textAlign: 'center'
},
{
text: '产品技术力',
left: '50%',
top: '70%',
textAlign: 'center'
},
{
text: '商业能力',
left: '80%',
top: '70%',
textAlign: 'center'
}
],
tooltip: {
trigger: 'axis'
},
legend: {
left: 'center',
top: '90%',
data: ['Ubiquiti', 'Reyee', 'Omada']
},
radar: [
{
indicator: [
{ text: '全球营收规模', max: 5 },
{ text: '市场份额', max: 5 },
{ text: '全球化布局', max: 5 },
{ text: '品牌影响力', max: 5 },
{ text: '用户口碑', max: 5 }
],
center: ['20%', '45%'],
radius: '45%',
name: {
textStyle: {
color: '#666',
fontSize: 14
}
}
},
{
indicator: [
{ text: '研发投入', max: 5 },
{ text: '专利技术', max: 5 },
{ text: '功能丰富度', max: 5 },
{ text: '产品完整度', max: 5 },
{ text: '易用性', max: 5 }
],
center: ['50%', '45%'],
radius: '45%',
name: {
textStyle: {
color: '#666',
fontSize: 14
}
}
},
{
indicator: [
{ text: '性价比', max: 5 },
{ text: '渠道覆盖', max: 5 },
{ text: '本地化服务', max: 5 },
{ text: '服务响应速度', max: 5 },
{ text: '生态完整性', max: 5 }
],
center: ['80%', '45%'],
radius: '45%',
name: {
textStyle: {
color: '#666',
fontSize: 14
}
}
}
],
series: [
{
type: 'radar',
tooltip: {
trigger: 'item'
},
data: [
{
value: [5, 5, 4, 4, 5],
name: 'Ubiquiti',
itemStyle: { color: '#5470c6' },
areaStyle: { opacity: 0.3 }
},
{
value: [3, 3, 2, 2, 4],
name: 'Reyee',
itemStyle: { color: '#91cc75' },
areaStyle: { opacity: 0.3 }
},
{
value: [4, 4, 5, 3, 4],
name: 'Omada',
itemStyle: { color: '#fac858' },
areaStyle: { opacity: 0.3 }
}
]
},
{
type: 'radar',
radarIndex: 1,
tooltip: {
trigger: 'item'
},
data: [
{
value: [4, 3, 4, 3, 4],
name: 'Ubiquiti',
itemStyle: { color: '#5470c6' },
areaStyle: { opacity: 0.3 }
},
{
value: [4, 4, 4, 3, 5],
name: 'Reyee',
itemStyle: { color: '#91cc75' },
areaStyle: { opacity: 0.3 }
},
{
value: [3, 3, 3, 4, 3],
name: 'Omada',
itemStyle: { color: '#fac858' },
areaStyle: { opacity: 0.3 }
}
]
},
{
type: 'radar',
radarIndex: 2,
tooltip: {
trigger: 'item'
},
data: [
{
value: [3, 3, 2, 2, 5],
name: 'Ubiquiti',
itemStyle: { color: '#5470c6' },
areaStyle: { opacity: 0.3 }
},
{
value: [4, 3, 4, 4, 3],
name: 'Reyee',
itemStyle: { color: '#91cc75' },
areaStyle: { opacity: 0.3 }
},
{
value: [5, 5, 5, 3, 4],
name: 'Omada',
itemStyle: { color: '#fac858' },
areaStyle: { opacity: 0.3 }
}
]
}
]
};
if (option && typeof option === 'object') {
myChart.setOption(option);
}
window.addEventListener('resize', myChart.resize);
</script>
</body>
</html>