MCPcopy
hub / github.com/plotly/plotly.js / assertFirstPointOn

Function assertFirstPointOn

test/jasmine/tests/hover_label_test.js:2959–2963  ·  view source on GitHub ↗
(gd, xaxisId, yaxisId)

Source from the content-addressed store, hash-verified

2957});
2958
2959function assertFirstPointOn(gd, xaxisId, yaxisId) {
2960 // first point should be on the main subplot
2961 expect(gd._hoverdata[0].xaxis._id).toBe(xaxisId);
2962 expect(gd._hoverdata[0].yaxis._id).toBe(yaxisId);
2963}
2964
2965describe('hover on subplots when hoversubplots is set to *axis* and x hovermodes', function () {
2966 'use strict';

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…