var donut = d3.layout.pie().value(function(d){ return d.itemValue; }).sort(null);. Here's a fiddle. In d3 V4 this is also valid syntax (without the .layout ):
確定! 回上一頁