Open ero opened 8 years ago
I'm, struggling with a similar situation.
You mast not use dateWindow and retainDateWindow=T simultaneously. The latter will prevent dateWindow to be set as desired. I worked around this with an if/else and that either calls with retainDateWindow=T or with dateWindow=... depending on whether dateWindow has to be overriden. But this still doesn't work as desired in all cases.
What's missing is an updateDygraph-Function that only sets the dateWindow but does not redraw. With this, things would be much easier...
Hi,
I put the same kind of quesiton on SO. https://stackoverflow.com/questions/49215000/synchronise-dygraph-and-daterangeinput-in-shiny
(maybe it can help ?)
Regards
I have been searching for the solution of this for a long time now, but I'm not sure what I am doing wrong or its the problem with the dygraphs or shiny library.
I can't figure it out - how to sync/connect dateRangeInput widget and rendering of dygraphs dyRange selector variable (input$dygraph_dateWindow) in BOTH ways.
Basically what I want is, if I move dyRangeSelectors on the graph,I would like that shinyWidget dateRangeInput() (those two input calandars) gets the new dyRangeSelector date variable.
Please see the code example below.