d3 pie chart transition with attrtween

前端 未结 2 1454
渐次进展
渐次进展 2021-01-22 06:30

i\'m trying to somehow sweep in a half-donut-chart, meaning starting with a blank screen the chart starts drawing at -90 degree (or 270) and performs a halfcircle until reaching

2条回答
  •  借酒劲吻你
    2021-01-22 06:45

    A small typo on the

    var svg = d3.select("body").append("svg").attr("width", width).attr("height", `height)
    

    should be:

    var svg = d3.select("body").append("svg").attr("width", width).attr("height", height)
    

提交回复
热议问题