You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I would take a look out of curiosity and I did notice that this line seems to severely affect performance, and when taking it out, I'm not immediately seeing any errors or issues.
Thanks @Spacarar! Hmm, this line is indeed the culprit, but it was put in to solve #1770.
The bar chart needs to be rescaled when it is redrawn in order to get the tick labels right when the row chart is filtered. But this somehow causes a large number of brush events which in turn cause more redraws when the bar chart is filtered. Unintended recursion of events, perhaps.
An extremely ugly workaround is to use
row.on('filtered',()=>bar.rescale());
instead. But having to add this to every other chart is a drag.
After brushing on the ordinal bar chart in the example, the row chart takes more than two minutes to stop moving.
There is nothing obvious in the code that would cause this. The row chart initialization is as simple as can be:
There must have been a change to D3 that caused this.
The text was updated successfully, but these errors were encountered: