Have been following along with Carson Sievert's RStudio webinar "Accessing and responding to Plotly events in Shiny".
I am trying to recreate his "refreshing the bars of a plotly chart rather than re-loading the chart entirely" within a Shiny Flexdashboard (instead of straight Shiny).
His most basic example (what I am trying to recreate) starts at 26:18.
I have been trying to have the bars refresh when a radio button selection is made (instead of just every 100 miliseconds, as in his video) but can't quite reproduce it.
I have made a gist -see link.
My impression is that this is a more optimized way of going about refreshing a chart, instead of the standard way (recreating the whole plot). So that's why I'm interested.
Many thanks in advance.