UNPKG

dimple-js

Version:

Dimple is an object-oriented API allowing you to create flexible axis-based charts using [d3.js](http://d3js.org "d3.js").

23 lines 935 B
// Copyright: 2015 AlignAlytics // License: "https://github.com/PMSI-AlignAlytics/dimple/blob/master/MIT-LICENSE.txt" // Source: /src/methods/_drawMarkers.js dimple._postDrawHandling = function (series, updated, removed, duration) { // Run after transition methods if (duration === 0) { updated.each(function (d, i) { if (series.afterDraw !== null && series.afterDraw !== undefined) { series.afterDraw(this, d, i); } }); removed.remove(); } else { updated.each("end", function (d, i) { if (series.afterDraw !== null && series.afterDraw !== undefined) { series.afterDraw(this, d, i); } }); removed.each("end", function () { d3.select(this).remove(); }); } };