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

Function fillSpikePoint

src/components/fx/hover.js:734–747  ·  view source on GitHub ↗
(point)

Source from the content-addressed store, hash-verified

732 }
733
734 function fillSpikePoint(point) {
735 if (!point) return null;
736 return {
737 xa: point.xa,
738 ya: point.ya,
739 x: point.xSpike !== undefined ? point.xSpike : (point.x0 + point.x1) / 2,
740 y: point.ySpike !== undefined ? point.ySpike : (point.y0 + point.y1) / 2,
741 distance: point.distance,
742 spikeDistance: point.spikeDistance,
743 curveNumber: point.trace.index,
744 color: point.color,
745 pointNumber: point.index
746 };
747 }
748
749 var spikelineOpts = {
750 fullLayout: fullLayout,

Callers 2

findHoverPointsFunction · 0.85
_hoverFunction · 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…