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

Function hoverData

test/jasmine/tests/annotations_test.js:869–881  ·  view source on GitHub ↗
(xyPairs)

Source from the content-addressed store, hash-verified

867 ];
868
869 function hoverData(xyPairs) {
870 // hovering on nothing can have undefined hover data - must be supported
871 if(!xyPairs.length) return;
872
873 return xyPairs.map(function(xy) {
874 return {
875 x: xy[0],
876 y: xy[1],
877 xaxis: gd._fullLayout.xaxis,
878 yaxis: gd._fullLayout.yaxis
879 };
880 });
881 }
882
883 function checkVisible(opts) {
884 gd._fullLayout.annotations.forEach(function(ann, i) {

Callers 1

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