In my shiny app, I am trying to see a list of data points on a line plot after the selecting a specific region on the chart but getting the list() output. I used event_data("plotly_selected", source = "A") to get the selected field data.
Below is my plotly code:
nms = row.names(mtcars)
plot_ly(mtcars, source = "A") %>%
add_trace(x = ~mpg, y = ~wt, key = nms, type="scatter", mode = "lines")