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:

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 update). My idea is to loop through the series and hide or show them.

Here is a simple demo: - 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) {

    } else {
        visible: true
      }, false)

Related Query

More Query from same tag