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

Function assertVisibleErrorBars

test/jasmine/tests/scattergl_test.js:232–240  ·  view source on GitHub ↗
(msg, exp)

Source from the content-addressed store, hash-verified

230 }
231
232 function assertVisibleErrorBars(msg, exp) {
233 var scene = gd._fullLayout._plots.xy._scene;
234 var countSceneErrorYOptions = scene.errorYOptions.filter(function(opts) { return opts; }).length;
235 var countDrawableErrorGroups = scene.error2d.groups.filter(function(group) { return group && group.count; }).length;
236
237 expect(countSceneErrorYOptions).toBe(exp, msg + ' scene options');
238 expect(countDrawableErrorGroups).toBe(exp, msg + ' renderer groups');
239 assertNoStaleErrorGroups(scene, msg);
240 }
241
242 Plotly.newPlot(gd, [{
243 type: 'scattergl',

Callers 1

scattergl_test.jsFile · 0.85

Calls 1

assertNoStaleErrorGroupsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…