Restrict mouseover area for a column to its own sh

2019-09-17 03:32发布

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}},
        },
    },

enter image description here

1条回答
一夜七次
2楼-- · 2019-09-17 03:50

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

// shared: true

See your updated fiddle here

查看更多
登录 后发表回答