Skip to content

Commit

Permalink
clear element before redrawing sankey
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhn committed Apr 4, 2016
1 parent ca44432 commit bdbacc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions caravel/assets/visualizations/sankey.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function sankeyVis(slice) {

var formatNumber = d3.format(",.0f");

div.selectAll("*").remove();
var svg = div.append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
Expand Down

0 comments on commit bdbacc4

Please sign in to comment.