In that case, I found that d3-selection was a tric...
# tornadofx
g
In that case, I found that d3-selection was a trick, a workaround on svg rendering limitations. In the browser, when you have an animation, all the code is ran before rendering. You can remove some elements (lines in that case) and add others but the rendering phase is not done in the same order. So you can still have the removed elements and the added ones. It’s very ugly. Using the d3-selection pattern, you reuse elements you planned to remove, by translating them.