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

Function extractPt

test/jasmine/tests/sunburst_test.js:211–218  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

209 }
210
211 function extractPt(k) {
212 var out = gd.calcdata.map(function (cd) {
213 return cd[0].hierarchy.descendants().map(function (pt) {
214 return Lib.nestedProperty(pt, k).get();
215 });
216 });
217 return out.length > 1 ? out : out[0];
218 }
219
220 it('should generate *id* when it can', function () {
221 _calc({

Callers 1

sunburst_test.jsFile · 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…