Skip to content
Snippets Groups Projects
Commit e5847e74 authored by Georgi's avatar Georgi
Browse files

Added the possibility to display unique values for the evidences displayed in...

Added the possibility to display unique values for the evidences displayed in the line chart (currently it was all evidences, even duplicates)
parent fe17bf6d
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,12 @@ function LineChart(data, timeline_container, info_container, {
const [xm, ym] = d3.pointer(event);
const i = d3.least(I, i => Math.hypot(xScale(X[i]) - xm, yScale(Y[i]) - ym)); // closest point
var sorted_evidences = EV[i].sort((a, b) => (a.time > b.time ? 1 : -1));
//info_container.innerHTML += EV[i];
//clear the info container
info_container.innerHTML = "";
//loop over the evidences for the clicked agent and print them in the info container
for (var n = 0; n < sorted_evidences.length; n++) {
info_container.innerHTML += "<p>" + JSON.stringify(sorted_evidences[n]) + "</p>";
info_container.innerHTML += "<hr>";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment