Fix: ignore null altitudes (#19)

This commit is contained in:
Lebewesen 2017-05-22 23:31:01 +02:00 committed by Bartek Fabiszewski
parent 798d498001
commit 123b2ce967

View File

@ -46,7 +46,9 @@ function displayChart() {
data.addColumn('number', 'altitude'); data.addColumn('number', 'altitude');
var altLen = altitudes.length; var altLen = altitudes.length;
for (var i = 0; i < altLen; i++) { for (var i = 0; i < altLen; i++) {
data.addRow([(i + 1), Math.round((altitudes[i] * factor_m))]); if (altitudes[i]!=null){
data.addRow([(i + 1), Math.round((altitudes[i] * factor_m))]);
}
} }
var options = { var options = {