Skip to content

Commit

Permalink
Clear sankey vis container on refresh to prevent duplicate charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Apr 4, 2016
1 parent ca44432 commit 8bdf10b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion caravel/assets/visualizations/sankey.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,14 @@ function sankeyVis(slice) {
slice.done(json);
});
};

var resize = function() {
div.select("svg").remove();
render();
};
return {
render: render,
resize: render
resize: resize
};
}

Expand Down

0 comments on commit 8bdf10b

Please sign in to comment.