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

Function _calc

test/jasmine/tests/treemap_test.js:326–337  ·  view source on GitHub ↗
(opts, layout)

Source from the content-addressed store, hash-verified

324 });
325
326 function _calc(opts, layout) {
327 gd = {};
328 opts = Array.isArray(opts) ? opts : [opts];
329
330 gd.data = opts.map(function (o) {
331 return Lib.extendFlat({ type: 'treemap' }, o || {});
332 });
333 gd.layout = layout || {};
334
335 supplyAllDefaults(gd);
336 Plots.doCalcdata(gd);
337 }
338
339 function extract(k) {
340 var out = gd.calcdata.map(function (cd) {

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…