Page 1 of 1

Stacked bar graph

Posted: Tue Oct 09, 2012 6:57 am
by tvonbrasch
Hi

I have a problem when making a stacked bar graph. The series (see attached workfile) in the group include both negative and positive values.

If i make a stacked bar graph, the graph does not show the correct values. see graph01 and group .

However, if i first make a single bar graph with data contracted by e.g., mean, and then afterwards I create a stacked bar graph, I get the desired result (see graph02correct and group1).

Is this a bug?

Sincerely,
Thomas von Brasch
Eviews 7.2 October 3

Re: Stacked bar graph

Posted: Tue Oct 09, 2012 11:32 am
by EViews Esther
This is not a bug. The way EViews creates a stacked bar graph (i.e. stacking positive & negative values) is different from Excel.

You will get the desired result by choosing the checkbox of the Stacked bar graphs (Graph Elements -> Bar-Area-Pie -> Checkbox: Stacked bar graphs ) option.

Re: Stacked bar graph

Posted: Tue Oct 09, 2012 11:30 pm
by tvonbrasch
perfect, thanks,
Thomas

Re: Stacked bar graph

Posted: Fri May 13, 2022 6:25 am
by miorinnovo
This is not a bug. The way EViews creates a stacked bar graph (i.e. stacking positive & negative values) is different from Excel.

You will get the desired result by choosing the checkbox of the Stacked bar graphs (Graph Elements -> Bar-Area-Pie -> Checkbox: Stacked bar graphs ) option.

Is there a way to do this by coding it? I'm trying to do a mixed graph with a line and the rest stack bars but the 'stackedbar(2,3,4)' command seems to default to the non-excel way.

thanks

Re: Stacked bar graph

Posted: Fri May 13, 2022 8:55 am
by EViews Gareth

Code: Select all

mygraph.options stackposneg

Re: Stacked bar graph

Posted: Fri May 13, 2022 5:48 pm
by miorinnovo

Code: Select all

mygraph.options stackposneg
Thanks, maybe i have the wrong first part though.

Doing this :

Code: Select all

mygraph.mixed stackedbar(1) line(2) mygraph.options stackposneg
It gives me an error saying options is not a valid view