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

Function _assertBinCenters

test/jasmine/tests/histogram_test.js:1293–1299  ·  view source on GitHub ↗
(expectedCenters)

Source from the content-addressed store, hash-verified

1291
1292 it('autobins all histograms (on the same subplot) together except `visible: false`', function(done) {
1293 function _assertBinCenters(expectedCenters) {
1294 var centers = gd.calcdata.map(function(cd) {
1295 return cd.map(function(cdi) { return cdi.p; });
1296 });
1297
1298 expect(centers).toBeCloseTo2DArray(expectedCenters);
1299 }
1300
1301 var hidden = [undefined];
1302

Callers 1

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