score:1

Accepted answer

Thank you for sharing it. It seems like a bug to me, I reported it on the Highcharts Github issue channel where you can follow this thread: https://github.com/highcharts/highcharts/issues/14189

As I understood you would like to create a custom legend and I think that it could be achieved in a different way (to avoid the chart.data update). My idea is to loop through the series and hide or show them.

Here is a simple demo: https://jsfiddle.net/BlackLabel/emyq7j94/ - you can test it by clicking the ab80, 60 bis 79 and alle.

Each button triggers a similar functionality (which you can save as an outstanding function):

  chart.series.forEach((s, i) => {
    if (i !== 5 && i !== 12) {
      s.hide()

    } else {
      s.show()
      s.update({
        visible: true
      }, false)
    }
  })

Related Query

More Query from same tag