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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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