Transition Code,
d3.select(\'chart\').select(\'svg\') .selectAll(\"circle\") .data(sampleData) .enter().append(\'circle\') .each(function (d,
The accepted answer does not work with the most recent version of d3. If you're using d3 v4, you should call .interrupt() on your selection.