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

Function extractPt

test/jasmine/tests/treemap_test.js:348–355  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

346 }
347
348 function extractPt(k) {
349 var out = gd.calcdata.map(function (cd) {
350 return cd[0].hierarchy.descendants().map(function (pt) {
351 return pt[k];
352 });
353 });
354 return out.length > 1 ? out : out[0];
355 }
356
357 it('should generate *id* when it can', function () {
358 _calc({

Callers 1

treemap_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…