sangltdn / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Reverse rendering order for stacked charts #264

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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)
                drawSeries(series[i]);

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

Original issue reported on code.google.com by kow...@gmail.com on 20 Nov 2009 at 8:18

GoogleCodeExporter commented 9 years ago
I think I need a screenshot, is this for filled line charts? If so, I just added
support for stacking them properly.

Original comment by olau%iol...@gtempaccount.com on 7 Dec 2009 at 3:43

GoogleCodeExporter commented 9 years ago
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.

Original comment by Timo.Tuo...@gmail.com on 24 Feb 2011 at 11:45

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 9:52