Skip to content Skip to sidebar Skip to footer

Formatting All The Markers For The Hovering Series In A Highcharts Scatterplot

I want to change the appearange of all the markers (not only the one pointed) when hovering the series, but the following code (http://jsfiddle.net/fw852fy9/4/) does not work prope

Solution 1:

Hover state works only for the point which is hovered. If you want to set all the markers to be hovered, you need to change their state programmatically, e.g. on series mouseover/mouseout.

series: [{
 stickyTracking: false,
events: {
  mouseOver: function() {
    this.data.forEach(p => p.setState('hover'))
  },
  mouseOut: function() {
    this.data.forEach(p => p.setState())
  }
},

example: http://jsfiddle.net/0zu9jmca/

Post a Comment for "Formatting All The Markers For The Hovering Series In A Highcharts Scatterplot"