mirror of https://github.com/apache/superset.git
clear element before redrawing sankey
This commit is contained in:
parent
889844407f
commit
e3e8202c98
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue