Stacked bar chart not displaying observations below 0

For questions regarding programming in the EViews programming language.

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

helpmecodeplease
Posts: 4
Joined: Wed Oct 04, 2023 8:30 am

Stacked bar chart not displaying observations below 0

Postby helpmecodeplease » Thu Dec 28, 2023 7:42 am

Hello,

I have a stacked bar chart bein created in my program using:

Code: Select all

graph graph1.bar(s) group1


It looks fine except for the observations that are below 0, those don't show up, only positive values are represented.

Any ides how tofix that?

Thanks

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

Re: Stacked bar chart not displaying observations below 0

Postby EViews Gareth » Thu Dec 28, 2023 7:46 am

It probably is working, but if you want to stack negative values separately from positive values, you'll need:

Code: Select all

graph1.options stackposneg
Follow us on Twitter @IHSEViews

helpmecodeplease
Posts: 4
Joined: Wed Oct 04, 2023 8:30 am

Re: Stacked bar chart not displaying observations below 0

Postby helpmecodeplease » Thu Dec 28, 2023 8:09 am

perfect, thank you.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 23 guests