#7963 Fixed netflow view 3

This commit is contained in:
Daniel Maya 2021-09-29 16:47:24 +02:00
parent fb449910c9
commit 1f32c62de9
1 changed files with 14 additions and 9 deletions

View File

@ -101,18 +101,23 @@ function chordDiagram(recipient, elements, matrix, width) {
if (event.type == "mouseover") {
const chords = chord.chords();
let aux = 0;
$.each(chords, function(key, value) {
if (
(value.source.index == i && value.target.subindex == i) ||
(value.source.subindex == i && value.target.index == i)
) {
console.log(aux);
if (aux < 5) {
if (
$("#tooltip").is(":hidden") ||
$("#tooltip").length == 0
(value.source.index == i && value.target.subindex == i) ||
(value.source.subindex == i && value.target.index == i)
) {
show_tooltip(value);
} else {
add_tooltip(value);
if (
$("#tooltip").is(":hidden") ||
$("#tooltip").length == 0
) {
show_tooltip(value);
} else {
add_tooltip(value);
aux++;
}
}
}
});