Merge pull request #32 from TobiasRaeder/clamp-values
Clamp values on sensors y axis10.3.x-maintenance
commit
082baeba96
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue