_pieChartData() { const { data, type } = this.state; return d3 .pie() .sort(null) .value(d => d[type])(data.filter(obj => obj[type] > 0)); }
pie() .sort(null) .value(d => d.value)
.pie() .value(d => d.value) .sort(null); this.createArc = d3 .arc()
d3.pie() .sort(null) .padAngle(0.02) .value(function(d) { return d.population; })
.sort(null) .value((d) => d.population);
pie() .sort(null) .value(d => d.value)