var myVue = newVue({
el :"#app",
data: {
dom:null,
childChart:"",
parentOption:{
tooltip : {
trigger:'item',
formatter:"{a}
{b} : {c} ({d}%)"},
legend: {
orient :'vertical',
x :'left',
data:[]
},
toolbox: {
show :true,
feature : {
mark : {show:true},
dataView : {show:false, readOnly: true},
magicType : {
show:true,
type: ['pie', 'funnel'],
option: {
funnel: {
x:'25%',
width:'20%',
funnelAlign:'center',
max:1548}
}
},
restore : {show:true},
saveAsImage : {show:true}
}
},
calculable :true,
series : [
{
name:'访问来源',
type:'pie',
radius : ['50%', '70%'],
itemStyle : {
normal : {
label : {
show :false},
labelLine : {
show :false}
},
emphasis : {
label : {
show :true,
position :'center',
textStyle : {
fontSize :'30',
fontWeight :'bold'}
}
}
},
data:[]
}
]
},
childOption:{
tooltip : {
trigger:'item',
formatter:"{a}
{b} : {c} ({d}%)"},
toolbox: {
show :true,
feature : {
mark : {show:true},
dataView : {show:false, readOnly: true},
magicType : {
show:true,
type: ['pie', 'funnel'],
option: {
funnel: {
x:'25%',
width:'20%',
funnelAlign:'center