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

Function _supply

test/jasmine/tests/splom_test.js:41–51  ·  view source on GitHub ↗
(opts, layout)

Source from the content-addressed store, hash-verified

39 var gd;
40
41 function _supply(opts, layout) {
42 gd = {};
43 opts = Array.isArray(opts) ? opts : [opts];
44
45 gd.data = opts.map(function(o) {
46 return Lib.extendFlat({type: 'splom'}, o || {});
47 });
48 gd.layout = layout || {};
49
50 supplyAllDefaults(gd);
51 }
52
53 it('should set `visible: false` dimensions-less traces', function() {
54 _supply([{}, {dimensions: []}]);

Callers 1

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