How to bring the selected ball forward (z-index higher) in Highcharts?

0

In the series, I have the legendItemClick event, which when I click on the legend it points to the ball as hover. Would you like to know how to bring it forward?

legendItemClick: function () {                           
                        resetaState();
                        //this.zIndex = 1000;
                        //this.toFront();
                        this.redraw();
                        this.data[0].setState('hover');

                       return false;
                    }
                }

I tested it by setting the z-index and using the toFront method, but I did not succeed.

    
asked by anonymous 16.11.2015 / 17:32

1 answer

1

Try to use z-index with a larger value, eg 999999 and remember that z-index only works with position informed, ex: position:relative; z-index:999999;

    
16.11.2015 / 20:10