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

Function hasFlag

src/traces/pie/plot.js:1232–1234  ·  view source on GitHub ↗
(flag)

Source from the content-addressed store, hash-verified

1230 if (!texttemplate && textinfo && textinfo !== 'none') {
1231 var parts = textinfo.split('+');
1232 var hasFlag = function (flag) {
1233 return parts.indexOf(flag) !== -1;
1234 };
1235 var hasLabel = hasFlag('label');
1236 var hasText = hasFlag('text');
1237 var hasValue = hasFlag('value');

Callers 1

formatSliceLabelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…