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

Function dirSign

src/traces/bar/plot.js:46–48  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

44// Returns 1 if a < b and -1 otherwise
45// (For the purposes of this module we don't care about the case where a == b)
46function dirSign(a, b) {
47 return a < b ? 1 : -1;
48}
49
50function getXY(di, xa, ya, isHorizontal) {
51 var s = [];

Callers 3

plotFunction · 0.85
toMoveInsideBarFunction · 0.85
toMoveOutsideBarFunction · 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…