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

Function _supply

test/jasmine/tests/colorscale_test.js:17–24  ·  view source on GitHub ↗
(arg, layout)

Source from the content-addressed store, hash-verified

15var supplyAllDefaults = require('../assets/supply_defaults');
16
17function _supply(arg, layout) {
18 var gd = {
19 data: Array.isArray(arg) ? arg : [arg],
20 layout: layout || {}
21 };
22 supplyAllDefaults(gd);
23 return gd;
24}
25
26describe('Test colorscale:', function() {
27 'use strict';

Callers 1

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