BookmarkSubscribeRSS Feed
data_null__
Jade | Level 19

I see lots of options for fitting TICK value labels THIN STAGGER ROTATE etc.

I would like to make the tick labels on the X axis occupy two rows.

+----+----|----+----|----+----|

            10         30

            20         40

Is there a way to do this perhaps with TICKDISPLAYLIST.

1 REPLY 1
Jay54
Meteorite | Level 14

There is no way to do this with SAS 9.2 GTL or SG Procedures.  SAS 9.3 SG procedures support annotation, and you can achieve this result by drawing the ticks yourself.  See example in this paper by Dan Heath.  SAS 9.3 GTL supports DRAWTEXT statements, which you could use to draw the ticks yourself too.  You can also use these to draw the unicode or rich text.

Tick value splitting into multiple lines has been added and will be released with SAS 9.4.  You can only split text on a discrete axis, not numeric values on interval axiw.  Not much help to you now, but it is coming.  🙂

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 1744 views
  • 0 likes
  • 2 in conversation