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

Function _newPlot

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

Source from the content-addressed store, hash-verified

18var sankeyConstants = require('../../../src/traces/sankey/constants');
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 return Plotly.newPlot(gd, fig);
35}
36
37function drag(path, options) {
38 var len = path.length;

Callers 3

plotMock14Function · 0.70
select_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…