MCPcopy
hub / github.com/plotly/plotly.js / _supply

Function _supply

test/jasmine/tests/pie_test.js:27–36  ·  view source on GitHub ↗
(trace, layout)

Source from the content-addressed store, hash-verified

25
26describe('Pie defaults', function() {
27 function _supply(trace, layout) {
28 var gd = {
29 data: [trace],
30 layout: layout || {}
31 };
32
33 supplyAllDefaults(gd);
34
35 return gd._fullData[0];
36 }
37
38 it('finds the minimum length of labels & values', function() {
39 var out = _supply({type: 'pie', labels: ['A', 'B'], values: [1, 2, 3]});

Callers 1

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