I have created a Shiny App with a range slider that dynamically adjusts the limits of the x axis. I have done this creating a slider called my_slider
in sliderInput()
in the ui, and then writing the command scale_x_date(limits = c(input$my_slider[1], input$my_slider[2]))
in the GGPlot in the server.
I was wondering if the same thing can be done using Crosstalk's filter_slider()
, instead of via Shiny. I have only managed to get Crosstalk's slider to hide/show the data in the plot based on the filter selected without changing the x axis limits.