library("shiny")
library("shinyjs")
library("shinypod")
library("dygraphs")
library("dplyr")
function(input, output, session) {
rct_data <- callModule(module = read_delim_sidebar_server, id = "csv")
rct_dyg <- callModule(dygraph_sidebar_server, "dyg", data = rct_data)
observe({
shinyjs::toggle(id = "csv_dyg", condition = isValidy(rct_dyg()))
})
output$csv_dyg <- renderDygraph({
rct_dyg() %>%
dyOptions(useDataTimezone = TRUE)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.