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

Function makeBins

src/traces/box/calc.js:349–359  ·  view source on GitHub ↗
(x, dx)

Source from the content-addressed store, hash-verified

347}
348
349function makeBins(x, dx) {
350 var len = x.length;
351 var bins = new Array(len + 1);
352
353 for(var i = 0; i < len; i++) {
354 bins[i] = x[i] - dx;
355 }
356 bins[len] = x[len - 1] + dx;
357
358 return bins;
359}
360
361function initNestedArray(len) {
362 var arr = new Array(len);

Callers 1

calc.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…