Javascript D3聆听;完";过渡事件
我正在学习D3并学习本课程: 为什么Javascript D3聆听;完";过渡事件,javascript,d3.js,Javascript,D3.js,我正在学习D3并学习本课程: 为什么.each(“end”,function(){…}会产生此错误?未捕获类型错误:callback.call不是函数 var canvas3 = d3.select("#doooo") .append("svg") .attr("width", 500) .attr("height", 500) var circle3 = canvas3.append("circle
.each(“end”,function(){…}
会产生此错误?未捕获类型错误:callback.call不是函数
var canvas3 = d3.select("#doooo")
.append("svg")
.attr("width", 500)
.attr("height", 500)
var circle3 = canvas3.append("circle")
.attr("cx", 50)
.attr("cy", 50)
.attr("r", 25)
circle3.transition()
.duration(1500)
.attr("cx", 150)
.each("end", function() { console.log("This is producing an error"); })
啊,.each(“end”,function(){…})
(第3版)似乎已经被第4版中的.on(“end”,…)
所取代