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

Function _supply

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

Source from the content-addressed store, hash-verified

52 var fullData;
53
54 function _supply(opts, layout) {
55 gd = {};
56 opts = Array.isArray(opts) ? opts : [opts];
57
58 gd.data = opts.map(function (o) {
59 return Lib.extendFlat({ type: 'treemap' }, o || {});
60 });
61 gd.layout = layout || {};
62
63 supplyAllDefaults(gd);
64 fullData = gd._fullData;
65 }
66
67 it('should set *visible:false* when *labels* or *parents* is missing', function () {
68 _supply([{ labels: [1], parents: [''] }, { labels: [1] }, { parents: [''] }]);

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…