naver / billboard.js

📊 Re-usable, easy interface JavaScript chart library based on D3.js
https://naver.github.io/billboard.js/
MIT License
5.83k stars 351 forks source link

Massive performance degradation of loading multiple stacked series in version 3.9.4 #3410

Open tomaszkunicki opened 1 year ago

tomaszkunicki commented 1 year ago

Description

This is only visible when you load multiple series.

Version 3.9.4

image

Version 3.9.3

image

Steps to check or reproduce

Measure creating multiple area series with something about 150 points it seems that each series load time grows exponentially It seems that loading something like 10 series takes forever now.

netil commented 1 year ago

Hi @tomaszkunicki, is really weird. The changes from 3.9.3 to 3.9.4 only affects tooltip visibility related. There's no changes which affects any performance issues nor some related changes.

Can you provide some reproducible code?

tomaszkunicki commented 1 year ago

It seems that problem might by setting transition.delay to 0. I observed strange behaviour when d3 whas looping and eating up all memory and crashed tab. As workaround I use transition.delay = null and it works for me now even the latest code. Anyway, it seems that transition should be investigated further.