Bar Chart Labels and Colors

For questions regarding programming in the EViews programming language.

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

oleviasharbaugh
Posts: 17
Joined: Thu Aug 24, 2023 9:42 am

Bar Chart Labels and Colors

Postby oleviasharbaugh » Thu Aug 24, 2023 12:48 pm

I currently have a bar chart indicating levels of data by year. I would like to:
1. Have the label above the bar chart indicate the percentage change from year to year instead of the level
2. Have the last bar on the bar chart be a different color from the rest to indicate that it is forecasted data, not historical

Is there a way to do this in Eviews 12?

Here is my current program:
graph graph_{%x}_{%y}_Value.bar {%x}_Value_{%y}
graph_{%x}_{%y}_Value.addtext(t, font("arial",14, b)) {%x } Construction Starts in {%longstate}
graph_{%x}_{%y}_Value.axis(l) format(prefix="$")
graph_{%x}_{%y}_Value.setelem(1) fillcolor(@rgb(63,79,170))
graph_{%x}_{%y}_Value.options barlabelabove
graph_{%x}_{%y}_Value.options gridnone
graph_{%x}_{%y}_Value.addtext(l,font(b,12)) "Millions of USD"
graph_{%x}_{%y}_Value.draw(shade, bottom,rgb(255,255,180)) 2024 2024

Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 0 guests