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

Hi All,

I am trying to add  axis table, and the label(stratum) overlaps the first value. I am using the following code for the axis table.

 

 

layout overlay / walldisplay=none xaxisopts=(display=none OFFSETMIN=0);
        axistable x=TATRISK value=ATRISK /title="Number At Risk" display=(label) valueattrs=(size=8pt)                  class=stratum colorgroup=stratum VALUEHALIGN=right;
endlayout;

 

Example fig:

new510_0-1626908854677.png

The label was supposed to be Treat11, and the first value is truncated to 41 instead of 2841.

 

I really appreciate any help you can provide.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

@ballardw is right.  It is hard to help without the code and data.  That said, if you must use GTL, try putting a bottom INNERMARGIN in the LAYOUT OVERLAY.  

 

However, if all you need is the table below the graph, it is easier to use SGPLOT procedure.  SGPLOT will take care of a lot of details for you.

View solution in original post

2 REPLIES 2
ballardw
Super User

Because many things in graphics can interact we need the entire template definition. Best would be some data and the Proc SGrender using the template to create the images.

 

Some possible ideas to look into that are relatively easy:

Make the graph area bigger

Make the font for the label smaller

 

Jay54
Meteorite | Level 14

@ballardw is right.  It is hard to help without the code and data.  That said, if you must use GTL, try putting a bottom INNERMARGIN in the LAYOUT OVERLAY.  

 

However, if all you need is the table below the graph, it is easier to use SGPLOT procedure.  SGPLOT will take care of a lot of details for you.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 1126 views
  • 2 likes
  • 3 in conversation