echarts [Feature] 柱状图,背景mouseover,mouseout事件支持

edqdpe6u  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(38)

What problem does this feature solve?

当柱状图的值相差过大,想要触发图形本身的mouseover,mouseout事件很困难,但是鼠标移动到柱的背景时,可以出现 tooltip,这个事件触发简单,触发时机往往也很符合用户的需求,这个事件能否暴露出来呢。

What does the proposed API look like?

myChart.on('mouseover', {element:'barBackground'}, function (e) {
    // ...
})
oaxa6hgo

oaxa6hgo1#

@mmmml-zhao It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Feature] Histogram, background mouseover, mouseout event support

BODY

What problem does this feature solve?

When the value of the bar chart is too different, want to trigger the mouseover of the graph itself, the mouseout event is very difficult, but when the mouse moves to the background of the bar, tooltip can appear, this event is simple to trigger, the trigger timing is often in line with the user's needs, can this event be exposed.

What does the proposed API look like?

myChart.on('mouseover', {element:'barBackground'}, function (e) {
    // ...
})

相关问题