changeset 2:b83d9186c2af

Make sure that we're following the new update pattern
author IBBoard <dev@ibboard.co.uk>
date Mon, 29 May 2017 14:28:30 +0100
parents a11817a35877
children c1d89ae900d5
files exif-graphr.js
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/exif-graphr.js	Mon May 29 14:06:47 2017 +0100
+++ b/exif-graphr.js	Mon May 29 14:28:30 2017 +0100
@@ -274,7 +274,7 @@
 	var circles = circlesG.selectAll("circle")
 		.data(filteredPhotos, byID);
 	circles.exit().remove();
-	circles.enter()
+	var circleEnter = circles.enter()
 		.append("circle")
 		.on('mouseover', tip.show)
 		.on('mouseout', tip.hide)
@@ -282,6 +282,7 @@
 //		.duration(750);
 	
 	circles/*.transition().duration(250)*/
+		.merge(circleEnter)
 		.attr("cx", function (d) { return expAxisScale(d.exposure); })
 		.attr("cy", function (d) { return flAxisScale(d.focal_length); })
 		.attr("r", function (d) { return 50 / d.f_number; })