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

Function _supply

test/jasmine/tests/sunburst_test.js:53–64  ·  view source on GitHub ↗
(opts, layout)

Source from the content-addressed store, hash-verified

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

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…