While the chart itself is rendering correctly, there seems to be an issue in the animation aspect. Below is the segment of code causing trouble.
chartGroup.select('.arc')
.transition().duration(3000)
.attrTween('d',function(d:DefaultArcObject){
console.log(d);
const iterpolate=d3.interpolate(0,d.endAngle);
return (t)=>{
d.endAngle=interpolate(t);
return arc(d);
}
}
The error being thrown is described here:
Cannot read properties of undefined (reading 'endAngle')
The parameter d is showing up as undefined.
Versions Report
- angular CLI: 9.1.2
- Node: 12.20.1
- d3: 7.3.0
- @types/d3: 7.1.0