It appeared on the surface that there might have been a bug in removeAllSeries since when I called it and then added several new series, old ones would still appear. Just like in the thread mentioned, if I have 5 series displayed, call removeAllSeries, then add 3 new series back in, I see the new 3 plus the last two from the previous set.
If I strip my example down far enough, the problem goes away and it appears to be related to adding and removing panels in place of the chart. I'm trying to display "loading..." and "no data" messages when appropriate and since there isn't a suitable method for doing this out-of-the-box in Highcharts, I'm trying to figure out a way to swap or hide separate panels instead. I'm aware of the showLoading/setLoading methods but they don't seem to do anything until after the chart is rendered initially. I still get a blank screen while waiting for data from my service call. The "no data" case still wouldn't be handled anyway.
So, although I've identified when the problem begins, I would like to 1) understand the root cause of why it is occurring in this case, and 2) find a good way to handle the "loading" and "no data" cases.
Thanks in advance for any help.
Ryan
Any help is appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm seeing the behavior described in this post here: http://sourceforge.net/p/gwt-highcharts/discussion/general/thread/8259438f/
It appeared on the surface that there might have been a bug in removeAllSeries since when I called it and then added several new series, old ones would still appear. Just like in the thread mentioned, if I have 5 series displayed, call removeAllSeries, then add 3 new series back in, I see the new 3 plus the last two from the previous set.
If I strip my example down far enough, the problem goes away and it appears to be related to adding and removing panels in place of the chart. I'm trying to display "loading..." and "no data" messages when appropriate and since there isn't a suitable method for doing this out-of-the-box in Highcharts, I'm trying to figure out a way to swap or hide separate panels instead. I'm aware of the showLoading/setLoading methods but they don't seem to do anything until after the chart is rendered initially. I still get a blank screen while waiting for data from my service call. The "no data" case still wouldn't be handled anyway.
So, although I've identified when the problem begins, I would like to 1) understand the root cause of why it is occurring in this case, and 2) find a good way to handle the "loading" and "no data" cases.
Thanks in advance for any help.
Ryan
Any help is appreciated.
Attaching a couple of files to demonstrate generally what I'm trying to do.