It was working great.
Last week I made the decision to upgrade my system (over 50 chart types) to d3 v4.
I've made all the changes and have everything working *except* sunburst charts.
There are enough changes to partition and hierarchy that I'm stuck.
Has anyone updated the sunburst examples (and by anyone, I mainly mean Mike...) to d3 v4?
var x = pd3.scaleLinear()
.range([0, 2 * Math.PI]);
var y = pd3.scaleSqrt()
.range([0, radius]);
var color = pd3.scaleOrdinal(pd3.schemeCategory20);
var partition = pd3.partition();
var arc = pd3.arc()
.startAngle(function(d) { return Math.max(0,Math.min(2 * Math.PI, x(d.x0))); })
.endAngle(function(d) { return Math.max(0, Math.min(2 * Math.PI, x(d.x1))); })
.innerRadius(function(d) { return Math.max(0, y(d.y0)); })
.outerRadius(function(d) { return Math.max(0, y(d.y1)); });
var xfmsvg = psvg.append("g")
.attr("transform", "translate(" + (width/2) + "," + (height/2) + ")"); // basic transform away from margins
var jsroot = buildSunburstHierarchy(data.resultSet.rows, "c_1", "m_1");
var root = pd3.hierarchy(jsroot)
.sum(function(d) { return 1;});
var ptdata = partition(root);
xfmsvg.selectAll("path")
.data(ptdata)
.enter().append("path")
.attr("d", function(d) {
var acdata = arc(d);
return acdata; })
.style("fill", function(d) { return color((d.children ? d : d.parent).name); });
my ptdata variable is partitioned as I think it should be. The arc function in the last section appending paths never gets called though.
Thanks for any help.