Skip to content

Commit

Permalink
Merge pull request #244 from Vile2539/master
Browse files Browse the repository at this point in the history
Updates the data-info of a bubble on transition
  • Loading branch information
markmarkoh committed Dec 15, 2015
2 parents 3626d1d + 9caa677 commit 2a3e9cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/datamaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,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()
Expand Down

0 comments on commit 2a3e9cb

Please sign in to comment.