custom x-axis labels on bar graph

For questions regarding programming in the EViews programming language.

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

EviewsUser1
Posts: 40
Joined: Thu Aug 28, 2014 8:08 am

custom x-axis labels on bar graph

Postby EviewsUser1 » Tue Jan 28, 2025 11:53 am

the following works:

graph _lastyr.bar(p) nfp_fromlastyear
_lastyr.setobslabel "govt" "mining and manuf" "construction"

but I actually have a longer list of labels that I have read into an alpha series. The alpha series is call names. How can I use names to fill in the custom labels on the x-axis?

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

Re: custom x-axis labels on bar graph

Postby EViews Gareth » Tue Jan 28, 2025 1:11 pm

Code: Select all

_lastyr.setobslabel(series) names

EviewsUser1
Posts: 40
Joined: Thu Aug 28, 2014 8:08 am

Re: custom x-axis labels on bar graph

Postby EviewsUser1 » Tue Jan 28, 2025 2:34 pm

perfect! thanks!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests