BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JasonL
Quartz | Level 8

I need to create multiple graphs with data tables underneath, one for each region.  The attached sas program contains a macro that reads the data (also attached) and creates a graph for each region.  The problem is that when the region has only one hospital to report on, the bar disappears and the contents of the data table go outside of the Graphics Output Area.

Can anyone help with this?

Thanks a lot!

Jason

1 ACCEPTED SOLUTION

Accepted Solutions
AncaTilea
Pyrite | Level 9

Hi Jason,

when you get a chance you should mark this question as answered so people like myself don't visit it again.

Smiley Wink

View solution in original post

4 REPLIES 4
AncaTilea
Pyrite | Level 9

Hi.

There are several small issues with the code, but what fixed your problem - or so I think, was the two following options in your PROC GCHART:

PROC GCHART...

vbar Hospital / discrete width=&Bar_Width space=&Space

...

I changed the width = 6 and space = 2 (I chose these numbers arbitrarily), but I thought of starting at this point because when you run your code, you do get warnings letting you know that the bardwidth specified is too wide...

I hope this bit of change helps!

Best of luck.


Anca.

JasonL
Quartz | Level 8

Thanks a lot!  Jason

AncaTilea
Pyrite | Level 9

Hi Jason,

when you get a chance you should mark this question as answered so people like myself don't visit it again.

Smiley Wink

JasonL
Quartz | Level 8

Sorry.  How do I mark it answered?  I couldn't find the option.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1600 views
  • 0 likes
  • 2 in conversation