I have been trying to update the d3 sunburst sequence partition to d3 V4, :
the one at: https://bl.ocks.org/kerryrodden/7090426
I have switched most of it over and it is mostly working working but it breaks on mouseleave function. The error I get is: d3.js:7616 Uncaught TypeError: callback.call is not a function
function mouseleave(d) {
d3.select("#trail")
.style("visibility", "hidden");
d3.selectAll("path").on("mouseover", null);
d3.selectAll("path")
.transition()
.duration(1000)
.style("opacity", 1)
.each("end", function() {
d3.select(this).on("mouseover", mouseover);
});
d3.select("#explanation")
.style("visibility", "hidden");
}
Does anyone know if there is something there which does not work in in d3 V4 - I couldn't find it in the docs. Or even better, if any one knows of an updated d3 V4 version of this somewhere.