aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-30 11:50:00 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-08-30 11:50:00 +0100
commite19a43a31a4279391760a2ed049da82d6cc543b5 (patch)
tree95808136aca1e89cbbc7465982998da60fddc9c1 /app
parentServe all necessary resources locally (diff)
downloadAnnotateChange-e19a43a31a4279391760a2ed049da82d6cc543b5.tar.gz
AnnotateChange-e19a43a31a4279391760a2ed049da82d6cc543b5.zip
Skip NaN observations
Diffstat (limited to 'app')
-rw-r--r--app/static/js/makeChartMulti.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/static/js/makeChartMulti.js b/app/static/js/makeChartMulti.js
index 4b7168f..e1a7aa5 100644
--- a/app/static/js/makeChartMulti.js
+++ b/app/static/js/makeChartMulti.js
@@ -33,6 +33,8 @@ function preprocess(data) {
function getLabelData(data, lbl) {
var lblData = [];
for (i=0; i<data.length; i++) {
+ if (isNaN(data[i][lbl]))
+ continue;
var item = {"X": data[i]["X"], "Y": data[i][lbl]};
lblData.push(item);
}