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

Function assertSubplot

test/jasmine/tests/plots_test.js:877–880  ·  view source on GitHub ↗
(type, n, msg)

Source from the content-addressed store, hash-verified

875 };
876
877 function assertSubplot(type, n, msg) {
878 expect(d3Select(gd).selectAll(subplotSelectors[type]).size())
879 .toBe(n, msg + ' - ' + type);
880 }
881
882 // opts.cartesian and opts.gl2d should be arrays of subplot ids ('xy', 'x2y2' etc)
883 // others should be counts: gl3d, geo, mapbox, map, parcoords, pie, ternary

Callers 1

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