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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 2 replies
  • 1242 views
  • 2 likes
  • 3 in conversation