D3.js .join() DOM ordering with key functions
Data Join Ordering Semantics In D3 v6 and v7, the .join() method streamlines the enter-update-exit pattern. When a key function is provided to the data join, D3 matches data points to existing DOM elements based on the returned key value rather than the array index. Ordering Uncertainty A critical design consideration arises when the order of the input data