Black Lives Matter. Please consider donating to Black Girls Code today.

Dynamic interaction between chart and table

I’d like to know if it is possible to have a dynamic interaction between chart and table. From what I can see, all the gallery examples that I have found for tables show them as static, so I understand this may not be feasible.

One example of what I would try to visually achieve is the motorcars dataset example, but where if a user zoomed in on a certain subset of the heatmap, the table automatically updates to show just the relevant rows.

Another example would be a scatterplot/table combination, where if a user selects a subset of points, the table shows the source data for those points (ideally also in the opposite direction, where selecting rows of a table highlights the relevant points in the chart)

I did read another post trying to achieve this in R/Shiny, but I’d prefer a simpler output