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

Function _hover

test/jasmine/tests/scatterternary_test.js:364–379  ·  view source on GitHub ↗
(gd, xval, yval, hovermode)

Source from the content-addressed store, hash-verified

362 afterAll(destroyGraphDiv);
363
364 function _hover(gd, xval, yval, hovermode) {
365 var cd = gd.calcdata;
366 var ternary = gd._fullLayout.ternary._subplot;
367
368 var pointData = {
369 index: false,
370 distance: 20,
371 cd: cd[0],
372 trace: cd[0][0].trace,
373 xa: ternary.xaxis,
374 ya: ternary.yaxis,
375 subplot: ternary
376 };
377
378 return ScatterTernary.hoverPoints(pointData, xval, yval, hovermode);
379 }
380
381 it('should generate extra text field on hover', function(done) {
382 var xval = 0.42;

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…