Skip to content

Reverse rendering order for stacked charts #343

dnschnur opened this Issue Sep 28, 2012 · 2 comments

1 participant

Flot member

Original author: (November 20, 2009 20:18:08)

When doing stacked charts, the front to back rendering order (for each
series) doesn't play well with opacity. This change in the draw() method

        for (var i = series.length-1; i >= 0; --i)

fixes the problem. Maybe you guys can accept this patch?

Original issue:

Flot member

From on December 07, 2009 15:43:06
I think I need a screenshot, is this for filled line charts? If so, I just added
support for stacking them properly.

Flot member

From on February 24, 2011 11:45:27
I have a similar problem with the legend. Humans tend to assume the top-most item in the legend is the top-most graph drawn.

I have one of the series selected (lineWeight bigger than for the others), but to have it on top of all other series I would need to place it last in the legend. This makes no sense from the user's point of view.

The described change seems to only affect the drawing order, and should thus be transparent to the rest of the system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.