const options={
tooltip:{
show:true,
trigger:"item",
formatter:function(params){
return `${params.data.name}:${params.data.num}人`
}
},
series:[
{
type:"funnel",
left:"0%",
top:"10%",
bottom:"0%",
width:"100%",
min:0,
max:100,
minSize:"30%",
maxSize:"100%",
sort:"descending",
gap:4,
orient:"vertical",
label:{
show:true,
color:"#fff",
position:"inside",
formatter:function(params){
return params.data.name+"\n"+params.data.value+"%"
}
},
itemStyle:{
borderColor:"transparent"
},
data:[
{
name:"意向",
value:80,//value值用来保持金字塔形状
num:1000//真正的数据
},
{
name:"申请",
value:60,
num:80
},
{
name:"评估通过",
value:40,
num:60
},
{
name:"正式服务",
value:20,
num:40
},
]
},
]
}