wolfram-language

Can you create a pie chart with varying slice sizes in d3?

╄→尐↘猪︶ㄣ 提交于 2019-12-11 03:41:42
问题 I'm trying to make something like Wolfram's SectorChart in d3 (https://reference.wolfram.com/language/ref/Files/SectorChart.en/O_5.png). I'm currently using a basic data set of [ { label:0, radius:1 }, { label:1, radius:1 }, { label:2, radius:2 }]; and I'm trying to vary the outer radius of the arc with the following function var arc = d3.arc() .innerRadius(0) .outerRadius(function(d) { return d.radius * 100; }) But this is not functional. Is it even possible to do this in d3? If so, am I on