I get this problem when i plot many dygraphs in shinydashbord tabPanel. I have an app with many tabPanel with a shiny graph on each of them. When the app is lunch every graph are correctly plot when i switch for a first time from a tabPanel to another. But when i come back to a graph on a tabPanel previously load : graph disappears. Before (tab1 and tab2):
To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one for a shiny app
(Under my code for reprex)
Shiny Graphic disappears when i switch from a tabPanel to another
I get this problem when i plot many dygraphs in shinydashbord tabPanel. I have an app with many tabPanel with a shiny graph on each of them. When the app is lunch every graph are correctly plot when i switch for a first time from a tabPanel to another. But when i come back to a graph on a tabPanel previously load : graph disappears. Before (tab1 and tab2):
I noticed that the x-axis was automatically syncing between the plots, and since they had different years, that's why they appeared blank when you visit the other one (completely different range). I first thought it was a Shiny issue, but diving into the Dygraph documentation I found the culprit: the group variable in your main dygraph function. If you set this, graphs are linked, and the x-asis will automatically sync. Just removing the group fixed it!
Is there a way to use the group function, such that comparing two graphs with different time stamps can be grouped?
I have one graph that represents data from this year and another graph that represents data from previous year. Everything works, but I would like to use the zoom function that comes with the 'group' parameter. The first graph disappears when I add the 'group' parameter.
Would you open a new topic and explain this again in some more detail (preferably using a Reprex) given the question is different from the one posted here and we like to keep it to one question per topic. Feel free to refer to this one if needed.