NEZ-421 perf: project-topo右上角两个饼图

This commit is contained in:
陈劲松
2020-10-21 20:29:17 +08:00
committed by chenjinsong
parent 2dc2b1ad5b
commit 1a6afc3759
5 changed files with 275 additions and 166 deletions

View File

@@ -470,6 +470,7 @@
series: [
{
type: "pie",
animation: false,
center: [40, 63],
radius: [14, 22],
data: [],
@@ -482,6 +483,41 @@
}
]
};
const topoPieOption = {
color: ["#60C6B4", "#EEA694"],
title: {
show: false,
},
legend: {
data: [],
show: true,
left: 60,
top: 6,
icon: "circle",
itemHeight: 4,
orient: "vertical",
itemGap: 6,
textStyle: {
fontSize: 12,
padding: [0, 0, 0, -10]
},
},
series: [
{
type: "pie",
animation: false,
center: [30, 25],
radius: [14, 22],
data: [],
label: {
show: true,
formatter: "",
color: "#666666",
position: "center",
}
}
]
};
function createTempTimes(){
let times=[];
for(let i=0;i<10;i++){
@@ -501,6 +537,7 @@
assetBar: {name: 'assetMessage', option: alertMessageBarByAsset},
noData:{name:'noData',option:noDataOption},
tooltipPie: {option: tooltipPieOption},
topoPie: {option: topoPieOption},
};
export default {
getOption:function(type){