Skip to content
Snippets Groups Projects
Commit 7d14657b authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

correct the compound tab le-lle biplot navigation function.

Former-commit-id: badfa42f28deaf1a7b2ca206f9052aded8a7b5e4
parent e2534c97
No related branches found
No related tags found
No related merge requests found
...@@ -147,8 +147,9 @@ ...@@ -147,8 +147,9 @@
}); });
document.getElementById(canvasId).onclick = function(evt){ document.getElementById(canvasId).onclick = function(evt){
var activePoints = scatterChart.getElementAtEvent(evt); var activePoints = scatterChart.getElementAtEvent(evt);
var datasetIndex = activePoints[0]._datasetIndex;
var selectedIndex = activePoints[0]._index; var selectedIndex = activePoints[0]._index;
var id = scatterChart.data.datasets[0].data[selectedIndex].id; var id = scatterChart.data.datasets[datasetIndex].data[selectedIndex].id;
window.location = '/compound/'+id; window.location = '/compound/'+id;
}; };
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment