MCPcopy Index your code
hub / github.com/plotly/plotly.js / partition

Function partition

src/traces/sunburst/plot.js:525–527  ·  view source on GitHub ↗
(entry)

Source from the content-addressed store, hash-verified

523// x[0-1] keys are angles [radians]
524// y[0-1] keys are hierarchy heights [integers]
525function partition(entry) {
526 return d3Hierarchy.partition().size([2 * Math.PI, entry.height + 1])(entry);
527}
528
529exports.formatSliceLabel = function (pt, entry, trace, cd, fullLayout) {
530 var texttemplate = trace.texttemplate;

Callers 4

plotOneFunction · 0.85
draw_ancestors.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…