Utilizing HighCharts to display a large number of points on a plot. Each point has an opacity setting and changes to red when selected. However, some points are difficult to distinguish due to overlapping.
I would like the selected point to be easily visible, similar to this:
To select points on the chart, I am using the following code snippet:
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 have attempted to set a z-index
value for the point, however, it seems ineffective (I also tried 'z-index':'1000'
). Is there another approach that can ensure the highlighted point is displayed above all other points?