I discovered a problem with zoom Synchronisation in combination with shiny::validate:
I have two graphs showing some data with zoom sync. Next I select a different dataset coming from a different timespan. This dataset shall update both graphs, but the second graphs has an error that is handled by shiny::validate. Hence the second graph gets hidden and an error message is displayed instead.
Problem is: the rangeSelector handles are still shown. This is no big problem in itself, but since the new dataset is from a totally different timespan than the original plot, the rangeSelector handles are way off out of the intended frame. This causes the whole app to be scrollable horizontally (see animated gif below). Additionally I can still drag the handlebars (of the invisible second graph) and cause the first graph (that is zoom synced) to scroll to a timespan that is not covered by the data. Strangely the right handlebar seems to get the left one as soon as I start dragging it.
I discovered a problem with zoom Synchronisation in combination with shiny::validate:
I have two graphs showing some data with zoom sync. Next I select a different dataset coming from a different timespan. This dataset shall update both graphs, but the second graphs has an error that is handled by
shiny::validate
. Hence the second graph gets hidden and an error message is displayed instead.Problem is: the rangeSelector handles are still shown. This is no big problem in itself, but since the new dataset is from a totally different timespan than the original plot, the rangeSelector handles are way off out of the intended frame. This causes the whole app to be scrollable horizontally (see animated gif below). Additionally I can still drag the handlebars (of the invisible second graph) and cause the first graph (that is zoom synced) to scroll to a timespan that is not covered by the data. Strangely the right handlebar seems to get the left one as soon as I start dragging it.
Here is the app I used for this demo:
ui.R
server.R
My sessionInfo():