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

Function setBound

src/traces/histogram/calc.js:257–265  ·  view source on GitHub ↗
(attr, bins, newBins)

Source from the content-addressed store, hash-verified

255 function(v) { return isNumeric(v) ? Number(v) : null; };
256
257 function setBound(attr, bins, newBins) {
258 if(bins[attr + 'Found']) {
259 bins[attr] = cleanBound(bins[attr]);
260 if(bins[attr] === null) bins[attr] = newBins[attr];
261 } else {
262 autoVals[attr] = bins[attr] = newBins[attr];
263 Lib.nestedProperty(traces[0], binAttr + '.' + attr).set(newBins[attr]);
264 }
265 }
266
267 // all but the first trace in this group has already been marked finished
268 // clear this flag, so next time we run calc we will run autobin again

Callers 1

calcAllAutoBinsFunction · 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…