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

Function _concat

src/plots/cartesian/autorange.js:328–343  ·  view source on GitHub ↗
(cont, indices)

Source from the content-addressed store, hash-verified

326 var i, j, d;
327
328 function _concat(cont, indices) {
329 for(i = 0; i < indices.length; i++) {
330 var item = cont[indices[i]];
331 var extremes = (item._extremes || {})[axId];
332 if(item.visible === true && extremes) {
333 for(j = 0; j < extremes.min.length; j++) {
334 d = extremes.min[j];
335 collapseMinArray(minArray, d.val, d.pad, {extrapad: d.extrapad});
336 }
337 for(j = 0; j < extremes.max.length; j++) {
338 d = extremes.max[j];
339 collapseMaxArray(maxArray, d.val, d.pad, {extrapad: d.extrapad});
340 }
341 }
342 }
343 }
344
345 _concat(fullData, ax._traceIndices);
346 _concat(fullLayout.annotations || [], ax._annIndices || []);

Callers 1

concatExtremesFunction · 0.85

Calls 2

collapseMinArrayFunction · 0.85
collapseMaxArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…