d3-chart with resizers

I have a setup where i have three different views horizontally aligned. The middle view has a d3 graph (using d3-chart). When I resize the views (using a resizer), d3 starts to give errors regarding the fact that the SVG elements have NaN for their x1 and y1 attributes. This was not a problem before resizing the views.

I’ve tried to update the height and the width of the d3 SVG element when the views are being resized, however, this didn’t work.

Is there a fix or workout around for this?

I found my mistake: I added the same node multiple times. Fixing this resulted in the desired behaviour.