score:1

Accepted answer

You need to move the drawing logic to the series.afterDraw method as shown here: http://dimplejs.org/adhoc_viewer.html?id=adhoc_bar_labels

Then simply class the new labels:

svg.append("text")
   .attr("class", dimple._createClass(data.yField))
   .attr("x", ...

And remove them at the start of the afterDraw method:

svg.selectAll("text." + dimple._createClass(data.yField)).remove();

Related Query

More Query from same tag