Stacked bar rendered very slow compared to stacked lines
Hi,
I am drawing a graph with around 4500 points and a range slider. I noticed that when I render it using lines (stacked), the range slider is much more responsive than when I render it using bar (stacked).
Do you have any clue on why and how to fix it?
I have the same result when testing with firefox and chromium, even if I have to admit that chromium is much more responsive than firefox...
Regards, Jason
In its current incarnation the stacked bars approach will never be as fast as stacked area, since under the hood, through d3 we're creating a new SVG element for each bar. For stacked area, it's just an SVG Element per series.
It's not exactly the same, but you could try stacked area with step-after interpolation for better performance.
Indeed, area us much more performant. Thanks for the advice! I guess we can close the issue?