react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

toggleSeries and hideSeries not working after using getJSON with updateSeries

Open Adarsh321123 opened this issue 4 years ago • 0 comments

@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?

Adarsh321123 avatar May 26 '21 20:05 Adarsh321123