Hey,
Based on this demo
https://codesandbox.io/s/1o5y7r31k3?file=/label.jsx, I think this code block is what I need to change for my use case.
Code: Select all
Highcharts.objectEach(chart.xAxis[0].ticks, function (tick) {
customLabels.push(<LabelComponent tick={tick} />);
});
I might need to use Highcharts.objectEach function to iterate over object in chart, find the loading element and then add the spinner to the loading element. However, I still don't know what's the exact element I need to use. I try to console.log chart object, but the only thing I can find is 2 functions: showLoading and hideLoading. I don't think I can add any react component with these 2 functions. With showLoading function, I can only show text according to this doc
https://api.highcharts.com/highcharts/lang.loading.
Could you provide me some examples?
Thanks!