score:1

Accepted answer

You can all enter or exit methods only on selections. You can go through this short tutorial on d3 update pattern here.

// trying to remove points which do not show up on reload
marker.exit().remove()
// end trying to remove points which do not show up on reload 
marker.enter().append("svg")
      .each(transform)
      .attr("class", "marker");

Related Query

More Query from same tag