rickshaw icon indicating copy to clipboard operation
rickshaw copied to clipboard

Stacked bar rendered very slow compared to stacked lines

Open jason69 opened this issue 13 years ago • 2 comments

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

jason69 avatar Jul 29 '13 19:07 jason69

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.

dchester avatar Aug 03 '13 22:08 dchester

Indeed, area us much more performant. Thanks for the advice! I guess we can close the issue?

jason69 avatar Aug 11 '13 20:08 jason69