BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

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=?

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

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. 

View solution in original post

4 REPLIES 4
DanH_sas
SAS Super FREQ

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. 

xxformat_com
Barite | Level 11

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 ?

 

DanH_sas
SAS Super FREQ

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:

  1. The TEXTGROUP option REQUIRES you use an attrmap. If the TEXTGROUPID is not specified, then we will look for ATTRID. If that is not there, then TEXTGROUP will be ignored.
  2. The COLORGROUP option can be used with or without an attrmap. If you want it to use an attrmap, just add the ATTRID option.

Hopefully, this clears things up for you.

xxformat_com
Barite | Level 11
Thank you Dan. It clears things.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1236 views
  • 3 likes
  • 2 in conversation