option = {
title: {
text: 'World Population'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'value',
boundaryGap: [0, 0.01]
},
yAxis: {
triggerEvent:true,
type: 'category',
axisLabel:{
margin:6,
width:140,
overflow:'truncate',
formatter:(value,index)=>{
return `${value}`
}
},
data: ['Brazil', 'IndonesiaIndonesiaIndonesiaIndonesia', 'USA', 'India', 'China', 'World'],
},
series: [
{
name: '2011',
type: 'bar',
data: [18203, 23489, 29034, 104970, 131744, 630230]
}
]
};
the mouse gesture effect is invalid, and the binding event is not triggered.
the mouse gesture effectand the binding event is triggered.
- OS:
- Browser:
- Framework: