You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
selection.join appends entering elements and removes exiting elements to match the data! Entering and updating elements are merged (and ordered), allowing chained operations on the result.
In What Makes Software Good, it's mentionned that doing things both on enter and update introduces duplication, like in this code:
In D3 v4, there's the selection.merge() API which works around this problem by merging both enter and update:
But, with the selection.join() API, it seems the same problem is present again:
Is there a way to do this with
join()
without the duplication?The text was updated successfully, but these errors were encountered: