Restrict mouseover area for a column to its own shape vs. surrounding area

青春壹個敷衍的年華 提交于 2019-12-11 23:08:06

问题


How to restrict the mouseover and mouseout events for a highcharts column so that the events fire when the mouse enters/leaves the actual column vs. the surrounding area ?

The mouseover/mouseout behavior can be seen in this js fiddle.

This is how I'm declaring the mouse events in the highcharts options :

   plotOptions:{
        column:{
            point: {
              events:  {
                mouseOut: onItemMouseOut,
                mouseOver: onItemMouseOver
                },
            },
            states:{hover:{enabled:false}},
        },
    },


回答1:


you need to just remove shared: true from tooltip options.

// shared: true

See your updated fiddle here



来源:https://stackoverflow.com/questions/33788158/restrict-mouseover-area-for-a-column-to-its-own-shape-vs-surrounding-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!