MCPcopy Create free account
hub / github.com/plotly/plotly.js / getOverlayableAxes

Function getOverlayableAxes

src/plots/cartesian/layout_defaults.js:169–182  ·  view source on GitHub ↗
(axLetter, axName)

Source from the content-addressed store, hash-verified

167 }
168
169 function getOverlayableAxes(axLetter, axName) {
170 var list = (axLetter === 'x') ? xNames : yNames;
171 var out = [];
172
173 for(var j = 0; j < list.length; j++) {
174 var axName2 = list[j];
175
176 if(axName2 !== axName && !(layoutIn[axName2] || {}).overlaying) {
177 out.push(name2id(axName2));
178 }
179 }
180
181 return out;
182 }
183
184 // list of available counter axis names
185 var counterAxes = {x: getCounterAxes('x'), y: getCounterAxes('y')};

Callers 1

layout_defaults.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…