我想在d3中製作類似Wolfram's SectorChart的東西(https://reference.wolfram.com/language/ref/Files/SectorChart.en/O_5.png)。我目前使用的您可以在d3中創建具有不同切片尺寸的餅圖嗎?
[ { label:0, radius:1 }, { label:1, radius:1 }, { label:2, radius:2 }];
基本數據集,我想用下面的函數
var arc = d3.arc()
.innerRadius(0)
.outerRadius(function(d) { return d.radius * 100; })
改變弧形的外半徑但這不起作用。是否有可能在D3中做到這一點?如果是這樣,我在正確的道路上?謝謝
啊,我明白了。謝謝! –