react-apexcharts
react-apexcharts copied to clipboard
toggleSeries and hideSeries not working after using getJSON with updateSeries
@junedchhipa I have a graph that displays two series as two lines. For testing purposes, I hardcode data for each series. When I use toggleSeries and hideSeries for one of the series in my graph, that series is hidden. However, if I remove the hardcoded data and use the getJSON method to get JSON from an API, then use updateSeries to fill a series with that JSON, and then use toggleSeries and hideSeries on that series, then the series is not hidden. Can you please let me know what needs to be done to make this work when the data comes from getJSON?