craig1980
Posts: 3
Joined: Sat Feb 27, 2021 1:51 pm

Is this Highcharts react post accurate?

Hi, I had a question about React Highcharts. Specifically why

Code: Select all

 Highcharts.charts.forEach(chart => console.log(chart))
will still contain undefined charts when, presumably because they were removed from the DOM (i might be wrong).

Anyhoo, I found this answer : https://github.com/highcharts/highchart ... -408085745 and wanted to know :

1. Is that accurate - is this 'by design in core, pure JavaScirpt Highcharts library' ?
2. If so, why does Highcharts still retains these undefined charts ?


Thanks :-)
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Is this Highcharts react post accurate?

Hello! Welcome to the official Highcharts forum, and thanks for contacting us with your question! Regarding the 1 question, this is a basic concept of the architecture of our library, so it will always be accurate. The ticket is in highcharts-react repository, and it should not refer to changing the core of Highcharts itself. Could you share some demo, where the problem could be reproduced? Kind regards,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Usage”