I am using highcharts for trending in my react code. On the initial page load, the chart is blank. User may add any type of series at the run time. On the basis of the series added, corresponding yaxis is added to the chart up to 3 yAxis can be added. I want to open a modal dialog box with min max inputs for each yaxis on the chart and set the min max value for each yaxis manually. I can achieve this already but with some hacks.
Is there any way in React that when the chart is fully loaded with all the y-axes added, I could click a button and open a modal dialog? render method is not always executed when series are added or removed from the chart so the modal dialog does not know how many axes are there in the chart.
Please let me know if it possible to render a modal dialog on click of a button (I can not pre render it while render method is executed.)
Thanks.
load
orrender
events should solve the problem. – ppotaczek