Hi,
The xaxitable can be a nice workaround to add a title which is aligned with the y-axis.
However, I'm not sure it is possible to use multiple styles in that title.
I've tried ^S={color=} but was not successfull.
Can you think of any other approach using xaxistable?
ods escapechar='^';
proc sgplot data=sashelp.class;
vbarbasic name / response=height;
xaxistable name / position=top
nolabel
title = "^S={color=red}Part 1 ^S={color=blue}Part 2^S={} Part 3"
valueattrs = (color = white);
run;
I can use the text function with sganno= or use leading blanks in the title statement but I find the xaxistable quite interesting here and I'm only looking for a xaxitable solution.
It looks like in this case, the TITLE style can only be set via TITLEATTRS.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.