Closed sharlagelfand closed 3 years ago
I've updated the app with a version that allows the slider to control the tab shown:
Some limitations/next steps:
cc @jhofman
just catching this now. it's a great start! a thought: maybe for limitation 2 below we could always go to the "beginning" of a given group-by step?
not sure how to solve limitation 1, seems like it requires some javascript magic. maybe @giorgi-ghviniashvili has some cool hacks?
The latest version of the app has it so that changing the tabs changes the frame of the animation (to the "beginning" of the group by step, as you suggested @jhofman - thanks!). It's a bit buggy so I'm refining it still - and will continue poking around to see how we might get it working the first time the animation is played through.
I've implemented it so that the slider updates the tabs, the tabs update the slider, and when the animation actually plays through for the first time / replays, the tabs are also updated. Updated app is here.
@giorgi-ghviniashvili the PR #70 adds to the JS the code to have the animation "play" / "replay" send the slider state to Shiny as well so that I can use it to update the tabs
Closed fully by #76.
As a next step on #30, looking into if it's possible / how difficult it is to have changing the slider in the datamation update which tab of data is shown in the app.