Hi there. I’m quite new to observable and I’m try to build a dataviz based on flowers, trying to stick with @mbostock’s reusable chart pattern as much as I can.
Here is my very first tentative blueprint:
As you can see in the first cells, I inserted transitions for gradients in order to smooth coloring updates. In this working case, there is just a continuous cycle that changes flower data in the same cell.
If you scroll down to the bottom of the notebook (ie. The problem with transitions), you can see that if I change data from another cell (e.g., set
data or to
data transitions are not triggered anymore. It looks like the chart cell is recomputed again from scratch.
Is there a way to trigger transitions upon data updates in the Observable machinery?