Hi,
In the axistable, it is possible to use the attrid= option as in most statements of proc sgplot.
In my tests, I get the same result with textgroupid=.
What is the benefit of using textgroupid= over attrid=?
The TEXTGROUP/TEXTGROUPID options are used to control the text attributes (family, style, etc.) from an attributes map. If you are only controlling the color, use the ATTRID/COLORGROUP combination.
The TEXTGROUP/TEXTGROUPID options are used to control the text attributes (family, style, etc.) from an attributes map. If you are only controlling the color, use the ATTRID/COLORGROUP combination.
Thanks Dan,
So there is no much value in using colorgroup= with attrid= given that textcolor attribute can be added in the mapping dataset when using textgroup= with textgroupid= and offers more attributes (textweight...).
Do you have in mind a case when colorgroup= with attrid= would be more valuable ?
The COLORGROUP / ATTRID combination predates the addition of the TEXTGROUP / TEXTGROUPID support. If you know you are going to use an attrmap with your axis table, the TEXTGROUP / TEXTGROUPID choice will give you the most flexibility, since you can control the full set of text attributes. However, there are a couple of things to note:
Hopefully, this clears things up 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.