|
@@ -11,22 +11,21 @@
|
|
|
<div class="sn-body">
|
|
|
<div class="wrap-container">
|
|
|
<div class="chartsdom" id="chart_scan"></div>
|
|
|
- <div class="chartsdom" id="chart_scan2"></div>
|
|
|
<div class="box">
|
|
|
<div class="nodetext text0">
|
|
|
- <span>工作量证明</span>
|
|
|
+ <span>区块链</span>
|
|
|
</div>
|
|
|
<div class="nodetext text1">
|
|
|
- <span>权益证明</span>
|
|
|
+ <span>人工智能</span>
|
|
|
</div>
|
|
|
<div class="nodetext text2">
|
|
|
- <span>股权授权证明</span>
|
|
|
+ <span>大数据</span>
|
|
|
</div>
|
|
|
<div class="nodetext text3">
|
|
|
- <span>容量证明</span>
|
|
|
+ <span>云计算</span>
|
|
|
</div>
|
|
|
<div class="nodetext text4">
|
|
|
- <span>第五代轻量证明</span>
|
|
|
+ <span>移动互联网</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -48,12 +47,97 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.getEchart();
|
|
|
- this.getEchart2();
|
|
|
},
|
|
|
methods: {
|
|
|
getEchart() {
|
|
|
let myChart = echarts.init(document.getElementById('chart_scan'));
|
|
|
let arrData = [{
|
|
|
+ value: 3,
|
|
|
+ name: '区块链',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#4284dd'
|
|
|
+ },{
|
|
|
+ offset: 1,
|
|
|
+ color: '#0c3371'
|
|
|
+ }])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ value: 4.5,
|
|
|
+ name: '人工智能',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#5253d3'
|
|
|
+ },{
|
|
|
+ offset: 1,
|
|
|
+ color: '#072559'
|
|
|
+ }])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ value: 3,
|
|
|
+ name: '大数据',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#8b5c85'
|
|
|
+ },{
|
|
|
+ offset: 1,
|
|
|
+ color: '#183571'
|
|
|
+ }])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ value: 5.5,
|
|
|
+ name: '云计算',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#b4734f'
|
|
|
+ },{
|
|
|
+ offset: 1,
|
|
|
+ color: '#443e5f'
|
|
|
+ }])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },{
|
|
|
+ value: 3,
|
|
|
+ name: '移动互联网',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
+ offset: 0,
|
|
|
+ color: '#3ab1d9'
|
|
|
+ },{
|
|
|
+ offset: 1,
|
|
|
+ color: '#124c94'
|
|
|
+ }])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+
|
|
|
+ for (let i = 0; i < arrData.length; i++) {
|
|
|
+ this.val += arrData[i].value;
|
|
|
+ }
|
|
|
+
|
|
|
+ arrData.push({
|
|
|
+ value: this.val,
|
|
|
+ name: '__other',
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ color: 'rgba(0, 0, 0, 0)'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ let arrData2 = [{
|
|
|
value: 10,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
@@ -70,9 +154,47 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}]
|
|
|
+
|
|
|
+ let tooltip = {
|
|
|
+ formatter: ' ',
|
|
|
+ backgroundColor: 'rgba(0, 0, 0, 0)'
|
|
|
+ }
|
|
|
+
|
|
|
this.option = {
|
|
|
- color: ['#05bbdf', '#1170e1', '#1b40e3', '#00c86c', '#5e51e3'],
|
|
|
+ label: {
|
|
|
+ normal: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ },
|
|
|
+ labelLine: {
|
|
|
+ normal: {
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'item'
|
|
|
+ },
|
|
|
series: [{
|
|
|
+ name: '现代技术',
|
|
|
+ type: 'pie',
|
|
|
+ startAngle: -180,
|
|
|
+ radius: '190%',
|
|
|
+ center: ['50%', '50%'],
|
|
|
+ roseType: 'radius',
|
|
|
+ z: 0,
|
|
|
+ tooltip: {
|
|
|
+ formatter: '{b0}: {c0} ({d0}%)'
|
|
|
+ },
|
|
|
+ label: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ emphasis: {
|
|
|
+ label: {
|
|
|
+ show: false
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data: arrData
|
|
|
+ },{
|
|
|
name: '2020年',
|
|
|
type: 'pie',
|
|
|
clockWise: false,
|
|
@@ -80,6 +202,7 @@ export default {
|
|
|
hoverAnimation: false,
|
|
|
radius: ['90%', '90%'],
|
|
|
center: ['50%', '50%'],
|
|
|
+ tooltip: tooltip,
|
|
|
label: {
|
|
|
normal: {
|
|
|
show: false
|
|
@@ -116,6 +239,7 @@ export default {
|
|
|
hoverAnimation: false,
|
|
|
radius: ['70%', '70%'],
|
|
|
center: ['50%', '50%'],
|
|
|
+ tooltip: tooltip,
|
|
|
label: {
|
|
|
normal: {
|
|
|
show: false
|
|
@@ -126,7 +250,7 @@ export default {
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: arrData
|
|
|
+ data: arrData2
|
|
|
},{
|
|
|
name: '2018年',
|
|
|
type: 'pie',
|
|
@@ -135,6 +259,7 @@ export default {
|
|
|
hoverAnimation: false,
|
|
|
radius: ['50%', '50%'],
|
|
|
center: ['50%', '50%'],
|
|
|
+ tooltip: tooltip,
|
|
|
label: {
|
|
|
normal: {
|
|
|
show: false
|
|
@@ -145,7 +270,7 @@ export default {
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: arrData
|
|
|
+ data: arrData2
|
|
|
},{
|
|
|
name: '2017年',
|
|
|
type: 'pie',
|
|
@@ -154,6 +279,7 @@ export default {
|
|
|
hoverAnimation: false,
|
|
|
radius: ['30%', '30%'],
|
|
|
center: ['50%', '50%'],
|
|
|
+ tooltip: tooltip,
|
|
|
label: {
|
|
|
normal: {
|
|
|
show: false
|
|
@@ -164,7 +290,7 @@ export default {
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: arrData
|
|
|
+ data: arrData2
|
|
|
},{
|
|
|
name: '2016年',
|
|
|
type: 'pie',
|
|
@@ -173,6 +299,7 @@ export default {
|
|
|
hoverAnimation: false,
|
|
|
radius: ['10%', '10%'],
|
|
|
center: ['50%', '50%'],
|
|
|
+ tooltip: tooltip,
|
|
|
label: {
|
|
|
normal: {
|
|
|
show: false
|
|
@@ -183,136 +310,12 @@ export default {
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
- data: arrData
|
|
|
+ data: arrData2
|
|
|
}]
|
|
|
}
|
|
|
|
|
|
myChart.setOption(this.option, true);
|
|
|
|
|
|
- window.addEventListener('resize', () => {
|
|
|
- myChart.resize();
|
|
|
- });
|
|
|
- },
|
|
|
- getEchart2() {
|
|
|
- let myChart = echarts.init(document.getElementById('chart_scan2'));
|
|
|
- let arrData = [{
|
|
|
- value: 3,
|
|
|
- name: '区块链',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
- offset: 0,
|
|
|
- color: '#4284dd'
|
|
|
- },{
|
|
|
- offset: 1,
|
|
|
- color: '#0c3371'
|
|
|
- }])
|
|
|
- }
|
|
|
- }
|
|
|
- },{
|
|
|
- value: 4.5,
|
|
|
- name: '人工智能',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
- offset: 0,
|
|
|
- color: '#5253d3'
|
|
|
- },{
|
|
|
- offset: 1,
|
|
|
- color: '#072559'
|
|
|
- }])
|
|
|
- }
|
|
|
- }
|
|
|
- },{
|
|
|
- value: 3,
|
|
|
- name: '大数据',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
- offset: 0,
|
|
|
- color: '#8b5c85'
|
|
|
- },{
|
|
|
- offset: 1,
|
|
|
- color: '#183571'
|
|
|
- }])
|
|
|
- }
|
|
|
- }
|
|
|
- },{
|
|
|
- value: 5.5,
|
|
|
- name: '云计算',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
- offset: 0,
|
|
|
- color: '#b4734f'
|
|
|
- },{
|
|
|
- offset: 1,
|
|
|
- color: '#443e5f'
|
|
|
- }])
|
|
|
- }
|
|
|
- }
|
|
|
- },{
|
|
|
- value: 3,
|
|
|
- name: '移动互联网',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
|
|
|
- offset: 0,
|
|
|
- color: '#3ab1d9'
|
|
|
- },{
|
|
|
- offset: 1,
|
|
|
- color: '#124c94'
|
|
|
- }])
|
|
|
- }
|
|
|
- }
|
|
|
- }]
|
|
|
-
|
|
|
- for (let i = 0; i < arrData.length; i++) {
|
|
|
- this.val += arrData[i].value;
|
|
|
- }
|
|
|
-
|
|
|
- arrData.push({
|
|
|
- value: this.val,
|
|
|
- name: '__other',
|
|
|
- itemStyle: {
|
|
|
- normal: {
|
|
|
- color: 'rgba(0, 0, 0, 0)'
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- this.option2 = {
|
|
|
- label: {
|
|
|
- normal: {
|
|
|
- show: false
|
|
|
- },
|
|
|
- },
|
|
|
- labelLine: {
|
|
|
- normal: {
|
|
|
- show: false
|
|
|
- }
|
|
|
- },
|
|
|
- series: [{
|
|
|
- name: '现代技术',
|
|
|
- type: 'pie',
|
|
|
- startAngle: -180,
|
|
|
- radius: '190%',
|
|
|
- center: ['50%', '50%'],
|
|
|
- roseType: 'radius',
|
|
|
- label: {
|
|
|
- show: false
|
|
|
- },
|
|
|
- emphasis: {
|
|
|
- label: {
|
|
|
- show: false
|
|
|
- }
|
|
|
- },
|
|
|
- data: arrData
|
|
|
- }]
|
|
|
- }
|
|
|
-
|
|
|
- myChart.setOption(this.option2, true);
|
|
|
-
|
|
|
window.addEventListener('resize', () => {
|
|
|
myChart.resize();
|
|
|
});
|
|
@@ -335,12 +338,6 @@ export default {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
- #chart_scan2 {
|
|
|
- z-index: 2;
|
|
|
- }
|
|
|
- #chart_scan {
|
|
|
- z-index: 1;
|
|
|
- }
|
|
|
|
|
|
.box {
|
|
|
overflow: hidden;
|