stacked bar plus line graph

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

mikela
Posts: 14
Joined: Tue Jan 11, 2011 8:24 am

stacked bar plus line graph

Postby mikela » Thu Aug 25, 2011 2:34 am

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.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: stacked bar plus line graph

Postby EViews Gareth » Thu Aug 25, 2011 7:51 am

I don't believe it is possible to have a mixture of a stacked bar and a line.
Follow us on Twitter @IHSEViews

DrJones
Posts: 2
Joined: Mon Oct 03, 2011 2:55 am

Re: stacked bar plus line graph

Postby DrJones » Mon Oct 03, 2011 3:20 am

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.
Attachments
graph.jpg
graph.jpg (15.98 KiB) Viewed 17308 times

DrJones
Posts: 2
Joined: Mon Oct 03, 2011 2:55 am

Re: stacked bar plus line graph

Postby DrJones » Sat Nov 05, 2011 4:43 am

Really no ideas?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

stacked bar plus line graph

Postby EViews Gareth » Sat Nov 05, 2011 6:31 am

Can't be done.
Follow us on Twitter @IHSEViews

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: stacked bar plus line graph

Postby startz » Sat Nov 05, 2011 8:05 am

Something kind of like this?
example.png
example.png (48.5 KiB) Viewed 17256 times

BrsG
Posts: 18
Joined: Thu Aug 29, 2013 3:20 am

Re: stacked bar plus line graph

Postby BrsG » Thu May 01, 2014 3:19 am

I have been looking for a solution to this as well. How did you create this?

BrsG
Posts: 18
Joined: Thu Aug 29, 2013 3:20 am

Re: stacked bar plus line graph

Postby BrsG » Wed Aug 20, 2014 4:27 am

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.

BrsG
Posts: 18
Joined: Thu Aug 29, 2013 3:20 am

Re: stacked bar plus line graph

Postby BrsG » Fri Nov 14, 2014 7:27 am

Any news on this?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: stacked bar plus line graph

Postby EViews Gareth » Fri Nov 14, 2014 9:32 am

It is on our list.
Follow us on Twitter @IHSEViews

tedward
Posts: 4
Joined: Thu Nov 05, 2015 5:40 am

Re: stacked bar plus line graph

Postby tedward » Wed Feb 24, 2016 4:54 am

Any solution for how to do this in EViews 9?

EViews Jason
EViews Developer
Posts: 870
Joined: Tue Sep 16, 2008 3:50 pm

Re: stacked bar plus line graph

Postby EViews Jason » Wed Feb 24, 2016 8:39 am

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

tedward
Posts: 4
Joined: Thu Nov 05, 2015 5:40 am

Re: stacked bar plus line graph

Postby tedward » Wed Feb 24, 2016 9:30 am

That's great to hear.
Nice work!

osindi
Posts: 12
Joined: Thu Mar 05, 2015 4:44 am

Re: stacked bar plus line graph

Postby osindi » Thu Aug 18, 2016 8:09 am

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,
Last edited by osindi on Thu Aug 18, 2016 8:15 am, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: stacked bar plus line graph

Postby EViews Gareth » Thu Aug 18, 2016 8:14 am

Freeze it.
Follow us on Twitter @IHSEViews


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 9 guests