Skip to content

Commit 3bdb0a5

Browse files
committed
fix phx 240 - do not display all selected if constraint is below range
1 parent 92fc203 commit 3bdb0a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/parcoords/axisbrush.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function setHighlight(d) {
102102

103103
function unitToPx(unitRanges, height) {
104104
return unitRanges.map(function(pr) {
105-
return pr.map(function(v) { return v * height; }).sort(sortAsc);
105+
return pr.map(function(v) { return Math.max(0, v * height); }).sort(sortAsc);
106106
});
107107
}
108108

0 commit comments

Comments
 (0)