summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2016-03-01 19:58:25 +0100
committerChris Schlaeger <chris@linux.com>2016-03-01 19:58:25 +0100
commit2abb612e26112a3ddbafb53537c7b75e4ec0d7c2 (patch)
tree21936dbc68075dd08c660b927fa575e5e9fdcde4
parente0c4a3e0bdf8fd4149ece69dfe132279f95eae65 (diff)
downloadpostrunner-2abb612e26112a3ddbafb53537c7b75e4ec0d7c2.zip
FIX: Don't clip negative HRV values on graph
-rw-r--r--lib/postrunner/ChartView.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/postrunner/ChartView.rb b/lib/postrunner/ChartView.rb
index c82b41e..ccf4a7d 100644
--- a/lib/postrunner/ChartView.rb
+++ b/lib/postrunner/ChartView.rb
@@ -327,7 +327,7 @@ EOT
" inverseTransform: function (v) { return -v; } }"
else
# Set the minimum slightly below the lowest found value.
- s << ", yaxis: { min: #{0.9 * min_value} }"
+ s << ", yaxis: { min: #{0.9 * min_value} }" if min_value > 0.0
end
s << "});\n"
s << lap_mark_labels(chart_id, start_time)