Bar Graph Ordering Values

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

rmoralesaramburu
Posts: 52
Joined: Mon Nov 18, 2013 9:09 am

Bar Graph Ordering Values

Postby rmoralesaramburu » Fri Jan 03, 2014 9:27 am

Hello,

I would like to create a bar graph but arranging the data values from maximum value to minimum value, from left to right, in an horizontal bar graph.

Is it possible?

Thanks

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: Bar Graph Ordering Values

Postby EViews Glenn » Mon Jan 06, 2014 12:19 pm

Bar graphs respect the order of the workfile as they are an over "time" visualization tool.

If you have dated data, you can unstructure the workfile and then sort the observations by the series you want to order. If non-dated data, then simply sort.

Alternately, and this may be easier, you can create a vector out of the series in question. Sort the vector, then plot. Note that the x-axis labels will be 1, 2, 3, etc.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests