Commit 54656f11 authored by Marc Duez's avatar Marc Duez
Browse files

graph.js : improve graph update

parent b8c9f691
......@@ -58,8 +58,6 @@ Graph.prototype = {
*
* */
init: function () {
document.getElementById(this.id)
.innerHTML = "";
this.build_menu()
......@@ -163,17 +161,14 @@ Graph.prototype = {
this.g_graph = this.polyline_container.selectAll("path")
.data(this.data_graph);
this.g_graph.enter()
.append("path")
.attr("id", function (d) {
return d.name;
})
.transition()
.duration(500)
.style("fill", "none")
.attr("id", function (d) {
return "poly" + d.name;
})
this.g_graph.exit()
.remove();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment