-
期望结果这个问题在 4.0 中也存在,期望鼠标 hover 在标签上时,也可以如右图展示 tooltip
复现地址 |
Beta Was this translation helpful? Give feedback.
Answered by
hustcc
May 11, 2023
Replies: 1 comment
-
可以将 label 的事件禁用,不响应事件。 .label({
text: 'value',
position: 'inside',
formatter: (v) => (v ? `${v}%` : ''),
transform: [{ type: 'overlapDodgeY' }],
style: {
fill: '#000',
fontSize: 10,
pointerEvents: 'none', // 👈🏻,不响应事件即可
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hustcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以将 label 的事件禁用,不响应事件。