aboutsummaryrefslogtreecommitdiff
path: root/app/static/js/makeChart.js
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-05 16:20:37 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-05 16:20:37 +0100
commitf0db7ba515cf68558ae0df20034afe595a4d84e6 (patch)
treedf5d983a2e159171efceab1cc0b0118d9960a22c /app/static/js/makeChart.js
parentAdd support for univariate datasets with missing values (diff)
downloadAnnotateChange-f0db7ba515cf68558ae0df20034afe595a4d84e6.tar.gz
AnnotateChange-f0db7ba515cf68558ae0df20034afe595a4d84e6.zip
Add word of warning on never changing the x indexing
Diffstat (limited to 'app/static/js/makeChart.js')
-rw-r--r--app/static/js/makeChart.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/static/js/makeChart.js b/app/static/js/makeChart.js
index 9ee0e2e..0301a5a 100644
--- a/app/static/js/makeChart.js
+++ b/app/static/js/makeChart.js
@@ -13,6 +13,10 @@ function preprocessData(data) {
run = [];
continue;
}
+ // NOTE: remember that this *must* be 0-based indexing, as the
+ // change point index is ultimately retrieved from this X
+ // value and the Python code is 0-based as well. Thus, the
+ // first item should get X = 0.
run.push({"X": n++, "Y": d});
}
cleanData.push(run);