Odd behavior of d3.transition
问题 I'm developing a personal web app with react and d3js. The core concept is I receive a bunch of data via websocket every 5 seconds, and I use these data to draw real-time circle on the canvas. The data I receive is an array of object, which looks like this: data = [{ name: 'alice', x: 10, y: 20, }...] And this is how I draw the circles: _renderCircles = () => { const t = d3.transition().duration(500); const radius = 3; const group = d3.select(this.refs.container) .selectAll('g.ring') .data