Skip to content

Commit 3e0b4fc

Browse files
committed
Make crosstalk demo start in select mode
1 parent 69b4c5d commit 3e0b4fc

File tree

1 file changed

+4
-2
lines changed
  • inst/examples/shiny-crosstalk

1 file changed

+4
-2
lines changed

inst/examples/shiny-crosstalk/app.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ server <- function(input, output, session) {
2525

2626
output$p1 <- renderPlotly({
2727
plot_ly(mtcars, x = wt, y = mpg, color = cyl, mode = "markers",
28-
key = mtcars$rowname, set = "A", height = "100%")
28+
key = mtcars$rowname, set = "A", height = "100%") %>%
29+
layout(dragmode = "select")
2930
})
3031

3132
output$p2 <- renderPlotly({
3233
plot_ly(mtcars, x = wt, y = disp, color = cyl, mode = "markers",
33-
key = mtcars$rowname, set = "A", height = "100%")
34+
key = mtcars$rowname, set = "A", height = "100%") %>%
35+
layout(dragmode = "select")
3436
})
3537

3638
output$plot1 <- renderPlot({

0 commit comments

Comments
 (0)