sangltdn / flot

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

Stacking plugin doesn't work for area charts #245

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I don't know if this is a bug or a feature request. I've just upgraded to 
flot 0.6.0 for the stacking support. I would like to have stacked areas, as 
in:

    http://images.google.nl/images?q=area%20chart

It works if I stack lines or bars, but "filled lines" (i.e. areas) don't 
seem to work. I think the bug is that the areas start at the bottom of the 
chart and overlap each other. Semi-transparent colors then become 
intelligible.

Is this by design or did I spot a bug?

regards
Michiel van der Leeuw

Original issue reported on code.google.com by mich...@vdleeuw.org on 27 Oct 2009 at 2:07

GoogleCodeExporter commented 9 years ago
The reason why it doesn't work is simply that area charts can't be drawn with an
arbitrary bottom at the moment. There's a patch somewhere for fixing that, then 
the
rest should be more or less trivial.

Original comment by olau%iol...@gtempaccount.com on 27 Oct 2009 at 3:07

GoogleCodeExporter commented 9 years ago
Can you point me towards the patch or should I hold off until the next release? 
Apart 
from the stacked graphs, I'm very happy.

Original comment by mich...@vdleeuw.org on 2 Nov 2009 at 2:22

GoogleCodeExporter commented 9 years ago
I am having the same issue.  This isn't exactly what you want, but I have this 
file
from somewhere, which fixes it - the flot library and plugins are inlined here. 

Original comment by jean.bar...@gmail.com on 16 Nov 2009 at 5:01

Attachments:

GoogleCodeExporter commented 9 years ago
G'day Jean,
I'm having the same issue mentined in this thread. You're solution looks great, 
but
is there any chance of getting this as an external javascript file please?
Thanks~!

Original comment by L0n3.R4n...@gmail.com on 17 Nov 2009 at 4:42

GoogleCodeExporter commented 9 years ago
Hi, just came across this report again. I think I fixed this some time ago in 
the
development version. Could you try the stacking plugin now and see if it works 
for you?

Original comment by olau%iol...@gtempaccount.com on 9 Feb 2010 at 2:18

GoogleCodeExporter commented 9 years ago
Sorry it took me so long to get back on this one, but I just grabbed the latest 
development version, turned on fill on the stacked chart and it's fixed!

Thanks!

Michiel

Original comment by mich...@vdleeuw.org on 18 Feb 2010 at 1:19

GoogleCodeExporter commented 9 years ago
Hi,

I got another (smaller issue).. When stacking graphs, the legend is bottom-up 
from 
the stacked bars in my graphs, making it difficult to see which things belong 
together. For an example see:

http://www.xs4all.nl/~satan/.flot/perfstats.png

I can probably hack around in the code and turn it up-side down, but I was 
wondering 
if I was doing something wrong?

Any help is appreciated, I'm very happy with flot!

cheers,
Michiel

Original comment by mich...@vdleeuw.org on 18 Feb 2010 at 7:48

GoogleCodeExporter commented 9 years ago
I'm having trouble getting stacked area charts to work for flot. I've been 
looking at examples and doing my best to imitate code that seems to work, but 
it looks like the filled are of the top most line in a stacked area charts 
overlaps those below it. Is anybody still experiencing this? Please help, I'm 
up against a deadline and totally frustrated.

Warmest regards,
Eric

Original comment by ericschm...@gmail.com on 28 Oct 2010 at 10:10

GoogleCodeExporter commented 9 years ago
To all,

I didn't realize that the above posts were talking about checking code out of 
svn when they were talking about the "development version"... Once I did that 
everything worked out great! Excellent plugin! Thank you, thank you, thank you!

Cheers,
Eric

Original comment by ericschm...@gmail.com on 28 Oct 2010 at 10:57

GoogleCodeExporter commented 9 years ago
Im having trouble here...
Has this been sorted? That fix looks great there is FAR too much code in that 
html file, could someone make it into a .js file for including??

Thanks

Original comment by jase.wil...@gmail.com on 4 Aug 2011 at 3:34

GoogleCodeExporter commented 9 years ago
The stacked plugin only seems to work if the bottom line is consistent. When 
the bottom area stops, so does the top. I don't want this, i need it so the top 
line carries on till the end.

Original comment by jase.wil...@gmail.com on 5 Aug 2011 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 11:26