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:
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.
@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.
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
@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.
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!
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.
Ready to level-up your skills? Choose your own adventure.