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

Function unitToPx

src/traces/parcoords/axisbrush.js:97–101  ·  view source on GitHub ↗
(unitRanges, height)

Source from the content-addressed store, hash-verified

95}
96
97function unitToPx(unitRanges, height) {
98 return unitRanges.map(function(pr) {
99 return pr.map(function(v) { return Math.max(0, v * height); }).sort(sortAsc);
100 });
101}
102
103// is the cursor over the north, middle, or south of a bar?
104// the end handles extend over the last 10% of the bar

Callers 2

setHighlightFunction · 0.85
getIntervalFunction · 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…