Nothing
library(shiny)
library(htmltools)
library(histoslider)
ui <- bslib::page_fluid(
div(
style = css(
width = "50%",
marginLeft = "auto",
marginRight = "auto",
display = "flex",
flexDirection = "column",
alignItems = "center"
),
input_histoslider("slide", NULL, mtcars$mpg),
selectInput("var", NULL, names(mtcars), selected = "mpg", width = "fit-content", selectize = FALSE)
)
)
shinyApp(
ui,
function(input, output) {
observe({
vals <- mtcars[[input$var]]
update_histoslider("slide", values = vals)
})
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.