We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77680c6 commit 9528621Copy full SHA for 9528621
1 file changed
app/public/js/main.js
@@ -318,9 +318,6 @@ function drawEvent(data, svg_area) {
318
.transition()
319
.duration(max_life)
320
.style('opacity', 0)
321
- //.each(function(){
322
- // circle_group.remove();
323
- // })
324
.remove();
325
326
@@ -349,4 +346,10 @@ function drawEvent(data, svg_area) {
349
346
.duration(5000)
350
347
.each(function() { no_label = true; })
351
348
+
+ // Remove HTML of decayed events
+ // Keep it less than 50
352
+ if($('#area svg g').length > 50){
353
+ $('#area svg g:lt(10)').remove();
354
+ }
355
}
0 commit comments