Merge pull request #32 from TobiasRaeder/clamp-values

Clamp values on sensors y axis
10.3.x-maintenance
Stefan Kolla 2014-04-13 17:06:51 +02:00
commit 082baeba96
1 changed files with 1 additions and 0 deletions

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]);