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

Function _newPlot

test/jasmine/tests/splom_test.js:20–36  ·  view source on GitHub ↗
(gd, arg2, arg3, arg4)

Source from the content-addressed store, hash-verified

18var assertHoverLabelContent = customAssertions.assertHoverLabelContent;
19
20function _newPlot(gd, arg2, arg3, arg4) {
21 var fig;
22 if(Array.isArray(arg2)) {
23 fig = {
24 data: arg2,
25 layout: arg3,
26 config: arg4
27 };
28 } else fig = arg2;
29
30 if(!fig.layout) fig.layout = {};
31 if(!fig.layout.newselection) fig.layout.newselection = {};
32 fig.layout.newselection.mode = 'gradual';
33 // complex ouline creation are mainly tested in "gradual" mode here
34
35 return Plotly.newPlot(gd, fig);
36}
37
38describe('Test splom trace defaults:', function() {
39 var gd;

Callers 2

splom_test.jsFile · 0.70
runFunction · 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…