Skip to content
Snippets Groups Projects
Commit ae718c59 authored by Christopher Pietsch's avatar Christopher Pietsch
Browse files

fixes undefined error for tsne view

parent f0307298
No related branches found
No related tags found
No related merge requests found
...@@ -696,11 +696,14 @@ function Canvas() { ...@@ -696,11 +696,14 @@ function Canvas() {
var factor = height / 2; var factor = height / 2;
var tsneEntry = tsneIndex[d.id] var tsneEntry = tsneIndex[d.id]
if(tsneEntry) {
d.x = (tsneEntry[0] * dimension) + width / 2 - dimension / 2 + margin.left;
d.y = (tsneEntry[1] * dimension) - dimension / 2 + marginBottom;
}
// var tsneEntry = tsne.find(function (t) { // var tsneEntry = tsne.find(function (t) {
// return t.id == d.id // return t.id == d.id
// }) // })
d.x = (tsneEntry[0] * dimension) + width / 2 - dimension / 2 + margin.left;
d.y = (tsneEntry[1] * dimension) - dimension / 2 + marginBottom;
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment