From 9caa6776ff7d10f8e978e3521585e53b2722b7a5 Mon Sep 17 00:00:00 2001 From: "Rankin, Alex" Date: Fri, 13 Nov 2015 14:25:02 +0000 Subject: [PATCH] Updates the data-info of a bubble on transition, supporting pull request #225. --- src/js/datamaps.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/js/datamaps.js b/src/js/datamaps.js index 19dfca07..7584b907 100644 --- a/src/js/datamaps.js +++ b/src/js/datamaps.js @@ -538,6 +538,11 @@ .duration(400) .attr('r', function ( datum ) { return val(datum.radius, options.radius, datum); + }) + .transition() + .duration(0) + .attr('data-info', function(d) { + return JSON.stringify(d); }); bubbles.exit()