I found the code here and used it.
downloadButton.onclick = function() {
Highcharts.charts.forEach(chart => {
chart.downloadXLS()
})
}
However, there was no error on the first screen, but if i call another chart through Ajax and try again, the following error occurs.
error code => list.do:3928 Uncaught TypeError: Cannot read properties of undefined (reading 'downloadXLS')
Is the arrow function an error caused by calling the object in the window? If so, how else should I write the arrow function?