MCPcopy Create free account
hub / github.com/plotly/plotly.js / closeToCovering

Function closeToCovering

src/traces/parcoords/axisbrush.js:14–14  ·  view source on GitHub ↗
(v, vAdjacent)

Source from the content-addressed store, hash-verified

12
13var snapClose = c.bar.snapClose;
14function closeToCovering(v, vAdjacent) { return v * (1 - snapClose) + vAdjacent * snapClose; }
15
16// snap for the low end of a range on an ordinal scale
17// on an ordinal scale, always show some overshoot from the exact value,

Callers 1

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