1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Clamp values on sensors y axis

This commit is contained in:
Tobias Raeder 2014-04-13 17:01:59 +02:00
parent f36ebee97e
commit 89ef9ac9a7

View file

@ -48,6 +48,7 @@ function initGraphHelpers(selector, sampleNumber, heightDomain) {
range([0, width]);
helpers.heightScale = d3.scale.linear().
clamp(true).
domain(heightDomain || [1, -1]).
range([height, 0]);