Page 1 of 2

stacked bar plus line graph

Posted: Thu Aug 25, 2011 2:34 am
by mikela
hi everyone,
i am not sure how to make the following chart. I have three series a,b,c and i would like to have in one graph a stacked bar of [a,b] with left-hand scale and a line graph of [c] on the right-hand scale.
is this possible? i managed to have the stacked bars and line but i can't differentiate the scales.

thanks a lot for any help,
M.

Re: stacked bar plus line graph

Posted: Thu Aug 25, 2011 7:51 am
by EViews Gareth
I don't believe it is possible to have a mixture of a stacked bar and a line.

Re: stacked bar plus line graph

Posted: Mon Oct 03, 2011 3:20 am
by DrJones
Hello, I'm confronted with the same problem. Bascially, I don't need different scales, but "only" a graph with stacked bars and a line (see example below). Is there really no way to build such a graph in EViews? I would highly appreciate to get any hints how to solve this issue.

Re: stacked bar plus line graph

Posted: Sat Nov 05, 2011 4:43 am
by DrJones
Really no ideas?

stacked bar plus line graph

Posted: Sat Nov 05, 2011 6:31 am
by EViews Gareth
Can't be done.

Re: stacked bar plus line graph

Posted: Sat Nov 05, 2011 8:05 am
by startz
Something kind of like this?
example.png
example.png (48.5 KiB) Viewed 42675 times

Re: stacked bar plus line graph

Posted: Thu May 01, 2014 3:19 am
by BrsG
I have been looking for a solution to this as well. How did you create this?

Re: stacked bar plus line graph

Posted: Wed Aug 20, 2014 4:27 am
by BrsG
This kind of chart is quite frequently used, so it would be great if it could be included as soon as possible. One example is a chart that shows GDP growth as a line and the growth contributions of GDP components as stacked bars.

Re: stacked bar plus line graph

Posted: Fri Nov 14, 2014 7:27 am
by BrsG
Any news on this?

Re: stacked bar plus line graph

Posted: Fri Nov 14, 2014 9:32 am
by EViews Gareth
It is on our list.

Re: stacked bar plus line graph

Posted: Wed Feb 24, 2016 4:54 am
by tedward
Any solution for how to do this in EViews 9?

Re: stacked bar plus line graph

Posted: Wed Feb 24, 2016 8:39 am
by EViews Jason
It can be done in EViews 9 via mixed graphs.

Code: Select all

group g x y z 'create a group containing x y z g.mixed stackedbar(1,2) line(3) 'create a mixed graph where x and y are stacked bars and z is a line

Re: stacked bar plus line graph

Posted: Wed Feb 24, 2016 9:30 am
by tedward
That's great to hear.
Nice work!

Re: stacked bar plus line graph

Posted: Thu Aug 18, 2016 8:09 am
by osindi
Hi, saw that you can do a stacked bar with line via the mixed option.

However, the end result is still a group, instead of a graph.

I want to change the barstacked options to excel type, but having trouble doing so since the object is a group

Is there anyway of having the result as a graph object, instead of a group object?

Another reason for having it as a graph (instead of group) object is to change Legend names, which i'm currently not able to do either. Any advice?

Thanks,

Re: stacked bar plus line graph

Posted: Thu Aug 18, 2016 8:14 am
by EViews Gareth
Freeze it.