#7963 Fixed netflow view 3

This commit is contained in:
Daniel Maya 2021-09-29 16:47:24 +02:00
parent fb449910c9
commit 1f32c62de9

View File

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