Stacked bar chart

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

Katjes
Posts: 56
Joined: Thu Oct 02, 2008 5:46 am

Stacked bar chart

Postby Katjes » Wed Nov 26, 2008 2:11 am

Is there a simple command to produce a stacked bar chart which sums up to 100%.
My example:
Two series A and B can be pictured by a stacked bar chart, but the total level varies over time and do not sum up to 100% (to 1). In a multiple step procedure I got the favoured results but I guess that there is a simple command.
Do you have suggestions?

The pedestrian version as follows:
[code]
genr total=a+b
genr s_a=a/total
genr s_b=b/total
graph weight.bar(s) s_a s_b
[quote]

EViews Pamela
EViews Developer
Posts: 54
Joined: Wed Sep 17, 2008 2:52 pm

Re: Stacked bar chart

Postby EViews Pamela » Wed Nov 26, 2008 12:45 pm

There is not a direct EViews command for this. Your current method is probably the easiest.

Katjes
Posts: 56
Joined: Thu Oct 02, 2008 5:46 am

Re: Stacked bar chart

Postby Katjes » Thu Nov 27, 2008 12:44 am

It's a pity that there is no command, but can be a suggestion for the next version. :wink:
(Because in simple Excel Charts it's possible - However I prefer merging various charts in Eviews!)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 24 guests