Identify a Node Before the Morph
In the Prompt: Establish the selected file and its size before changing the chart layout.
A layout transformation needs an identifiable item that the viewer can follow. Define the selected node, its parent and displayed value before changing the geometry. A tooltip can establish that identity without requiring every block to be labeled. Keep selection as data state, so the highlighted object remains the same file when the presentation changes.