How can I add a vertical y-axis scroll bar in a plotly line chart?
library(plotly)
x <- c(1:100)
random_y <- rnorm(100, mean = 0)
data <- data.frame(x, random_y)
p <- plot_ly(data, x = ~x, y = ~random_y, type = 'scatter', mode = 'lines')
p
I have a html code for scroll bar but i don't know how to integrate that code with plot
Html <div style="overflow-y:scroll;height: 200px;">