-
Bug
-
Resolution: Fixed
-
Normal
-
3.0.1
-
Security Level: Jimmy
-
None
Steps to Reproduce
1. run the attached zul
2. click 5 legends to hide 5 series manually
3. click "show all" button to show all series
Current Result
it takes a long time to show all series
Expected Result
the time can be reduced
Debug Information
- since the server call show() for all series, so it causes client-side to redraw each series one by one. Please see the profile.
Workaround
There are 2 workarounds:
1. charts.invalidate();
2. listen to onPlotHide and set visible false
@Listen("onPlotHide = #charts") public void hide(ChartsEvent e){ e.getSeries().setVisible(false); }
only call show() to those invisible series
if (!charts.getSeries(i).isVisible()){ //workaround 2 charts.getSeries(i).show(); };