youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Nagative values in a stacked bar chart #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The stacked bar chart doesn't display negative value correctly.

For example, I have 3 data arrays :
data1 = [250,230,200,180,160,140,130]; 
data2 = [80,60,50,30,20,-10,-20]; 
data3 = [25,18,15,12,-5,-10,-20];

I would like to have a stacked bar chart with positive and negative colums.

But flotr display negative values correctly only if all values of a column
are negative.

How can I print correctly positive and negative values in one column ?

See attached file to understand my problem.

Thanks.

Original issue reported on code.google.com by cousin.t...@laposte.net on 28 Apr 2010 at 1:43

Attachments:

GoogleCodeExporter commented 8 years ago
Hello, do you have an example of how the bars would be drawn?

Original comment by fabien.menager on 16 Jul 2010 at 7:04

GoogleCodeExporter commented 8 years ago
The bars would be drawn like the bar chart image i attached in my previous 
message.
With flotr, it isn't possible to draw negative AND positive values on a same 
bar.

Original comment by thomas.c...@gmail.com on 19 Jul 2010 at 8:57

GoogleCodeExporter commented 8 years ago
Here is solution for this issue. It also solves a problem with showing negative 
values on bar charts, when there are constraits in axes, still looking solution 
for horizontal stacked bars chars, if i made it i will post here a new patch

Original comment by macku30@gmail.com on 13 Aug 2010 at 9:24

Attachments:

GoogleCodeExporter commented 8 years ago
Finally this patch consist all of changes made in previous patch and also 
enables horizontal stacked bars charts. Both patches are made against rev. 169.

Original comment by macku30@gmail.com on 16 Aug 2010 at 7:49

Attachments:

GoogleCodeExporter commented 8 years ago
Is it possible for someone to apply this patch and commit it as r182?  This is 
a pretty significant and important part of stacked bar graphs that is still 
non-functional in r181.

Original comment by sbst...@gmail.com on 8 Mar 2011 at 5:16

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r182.

Original comment by fabien.menager on 16 Mar 2011 at 7:56