clear element before redrawing sankey

This commit is contained in:
andrewhn 2016-04-05 09:13:54 +10:00 committed by Maxime Beauchemin
parent 889844407f
commit e3e8202c98
1 changed files with 1 additions and 0 deletions

View File

@ -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)