aboutsummaryrefslogtreecommitdiff
path: root/app/static/js/makeChartMulti.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/makeChartMulti.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/makeChartMulti.js')
-rw-r--r--app/static/js/makeChartMulti.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/static/js/makeChartMulti.js b/app/static/js/makeChartMulti.js
index bbe0993..59f5acb 100644
--- a/app/static/js/makeChartMulti.js
+++ b/app/static/js/makeChartMulti.js
@@ -20,7 +20,10 @@ function preprocess(data) {
// console.log("Time axis is not implemented yet. Ignoring.");
}
for (i=0; i<data.values[0].raw.length; i++) {
- var item = {"X": i}
+ // NOTE: never change this to 1-based indexing. This index is
+ // ultimately stored in the database as the change point
+ // index!
+ var item = {"X": i};
for (j=0; j<nVar; j++) {
item["Y" + j] = data.values[j].raw[i];
}