name:"personRelation",
data() {return{
myChart:null,
chartData:[],
chartLink:[]
}
},
mounted() {this.initEchart()
},
methods: {
initEchart() {
let dom= document.getElementById("container");this.myChart =echarts.init(dom);this.chartData=this.dataEChart();this.chartLink=this.linkEChart();
let option={
tooltip:{
show:false},
series: [
{
edgeLabel: {
normal: {
formatter:"{c}",
show:true}
},
edgeSymbol:'circle',
force:{
repulsion:2000},
layout:'force',
roam:true,
itemStyle:{
normal:{
color:'#6495ED'},//鼠标放上去有阴影效果
emphasis: {