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

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

Re: stacked bar plus line graph

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

sorry how do you freeze it (using code) so that it's a graph object, but still stackedbars + line?

Thanks,

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 9:04 am

How are you making it (via code) with the group?
Follow us on Twitter @IHSEViews

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

Re: stacked bar plus line graph

Postby osindi » Thu Aug 18, 2016 9:06 am

I used the code: group1.mixed stackedbar(1,2,3,4,5,6) line(7)

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 9:06 am

Code: Select all

freeze(mygraph) group1.mixed stackedbar(1,2,3,4,5,6) line(7)
Follow us on Twitter @IHSEViews

alexanderk
Posts: 2
Joined: Thu Oct 14, 2021 3:57 am

Re: stacked bar plus line graph

Postby alexanderk » Wed Feb 23, 2022 3:34 pm

Hi, this chart type does not seem to work, when I have both negative and positive contributions in the group. The positive contributions should start from the zero horizontal axis going upwards and at the same time the negative contributions should start from the zero horizontal axis, but going in the downwards direction. But this does not seem to be the case. When I have both positive and negative ones in one period, they just stack up incorrectly, not starting from zero.
Is there a solution to this?
Many thanks.
Alexander

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 » Wed Feb 23, 2022 5:29 pm

2022-02-23_162910.png
2022-02-23_162910.png (43.69 KiB) Viewed 2777 times
Follow us on Twitter @IHSEViews

alexanderk
Posts: 2
Joined: Thu Oct 14, 2021 3:57 am

Re: stacked bar plus line graph

Postby alexanderk » Thu Feb 24, 2022 2:58 am

Thank you, this is very useful.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 11 guests