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

Function addPercent

src/traces/sunburst/plot.js:574–579  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

572 if (nPercent) {
573 var percent;
574 var addPercent = function (key) {
575 tx = helpers.formatPercent(percent, separators);
576
577 if (hasMultiplePercents) tx += ' of ' + key;
578 thisText.push(tx);
579 };
580
581 if (hasFlag('percent parent') && !isRoot) {
582 percent = val / helpers.getValue(parent);

Callers 1

plot.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…