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

Function makeData

test/jasmine/tests/plots_test.js:1042–1054  ·  view source on GitHub ↗
(subplots)

Source from the content-addressed store, hash-verified

1040 afterEach(destroyGraphDiv);
1041
1042 function makeData(subplots) {
1043 var data = [];
1044 for(var i = 0; i < subplots.length; i++) {
1045 var subplot = subplots[i];
1046 var yPos = subplot.indexOf('y');
1047 data.push({
1048 y: [1, 2],
1049 xaxis: subplot.slice(0, yPos),
1050 yaxis: subplot.slice(yPos)
1051 });
1052 }
1053 return data;
1054 }
1055
1056 function _assertDomains(domains) {
1057 for(var axName in domains) {

Callers 1

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