Are there any good examples of how to animate visualizations on a simple svg chart? Most notebooks I see have their output recreated on every change so the transitions never run.
Found one notebook by Mike which contains a transition call but it doesn’t seem to work (or even be used?)
@jashkenas discusses using
this in this post:
I did a probably not recommended workaround here, not using
The idea was to just create an essentially static svg cell that I then manipulate from another cell called
chart. However, I suspect this is not idiomatic because
svg does not have an explicit dependency on
Generally, I’d be curious to hear more ideas for using D3 animations/transitions in Observable.