Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  changeData(_this) {
  2.             this.animation = true
  3.             // remove the old bars
  4.             _this.focus.selectAll("*")
  5.                  //  .transition()
  6.                  //  .duration(300)
  7.                  //  .attr("y", 0)
  8.                  // .style("fill-opacity", 1e-6)
  9.                   .remove();
  10.  
  11.             // redraw the chart
  12.             _this.draw();
  13.  
  14.             // move the chart to the previous zoomed state
  15.             if (_this.lastTransform != null) _this.zoomed(_this);
  16.  
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement