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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 355 views
  • 2 likes
  • 3 in conversation