I use HighCharts to create several hundred points. Each dot has an opacity value, and when highlighted, it is red. However, when I highlight some points, it is very difficult to see them, because there is an add-in of points.

I would like the selected point to be clearly visible, for example:

I select the points in the diagram using the following code:
updateChart = function(x){ for (i=0; i<chart.series[0].data.length; i++){ if(chart.series[0].data[i].config[2] == x){ chart.series[0].data[i].graphic.attr({'fill':'red', 'z-index':1000}) } else{ chart.series[0].data[i].graphic.attr('fill', 'rgba(0,255,0,0.6)') } } }
I tried to set the z-index value of the point, but it doesn't seem to matter (I also tried 'z-index':'1000' ). Is there any other way so that I can make sure that the selected point is displayed on top of all other points?
source share