-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed as not planned
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.topic: label
Description
Version
5.2.2
Link to Minimal Reproduction
No response
Steps to Reproduce
option = {
title: {
text: 'World Population'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'value'
},
yAxis: {
triggerEvent: true,
axisLabel: {
width: 60,
interval: 0,
overflow: 'truncate'
},
data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
},
series: [
{
name: '2011',
type: 'bar',
data: [18203, 23489, 29034, 104970, 131744, 630230]
}
]
};
点击事件监听
myChart.on('click', 'yAxis', function(params) {
console.log('click-params', params)
})
Current Behavior
- 设置yAxis文本超出溢出显示...
- 监听点击yAxis的label进行一些处理
- 但是目前点击没有....的label后端无法响应事件
Expected Behavior
- 点击yAxis的所有label都能响应事件
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.topic: label