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

Function getConnectedHistograms

src/traces/histogram/calc.js:519–538  ·  view source on GitHub ↗
(gd, trace)

Source from the content-addressed store, hash-verified

517 * would have tons of edge cases and value judgments to make.
518 */
519function getConnectedHistograms(gd, trace) {
520 var xid = trace.xaxis;
521 var yid = trace.yaxis;
522 var orientation = trace.orientation;
523
524 var out = [];
525 var fullData = gd._fullData;
526 for(var i = 0; i < fullData.length; i++) {
527 var tracei = fullData[i];
528 if(tracei.type === 'histogram' &&
529 tracei.visible === true &&
530 tracei.orientation === orientation &&
531 tracei.xaxis === xid && tracei.yaxis === yid
532 ) {
533 out.push(tracei);
534 }
535 }
536
537 return out;
538}
539
540function cdf(size, direction, currentBin) {
541 var i, vi, prevSum;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…