I have to kind of problems. First of all I still am unable to control the bar outline colors in sgplot (I can do it with DATTRMAP statement but it is not possible to use it in this case). I have tried to find the correct style attribute in the rtf template but still unable to find it so if someone could kindly provide me the correct attribute to modify.
Here is a picture of my problem (I would need the outlines to be black):
Also there is a drastic difference with my rtf and html output. Here are the identical graphs output in different location:
And it would be really critical for me to get the count datalabels to be shown on the RTF also. How I can force this?
First Question
The outline is controlled by the "contrast" color, see code example below that shows two techniques using a style and using the new STYLEATTRS statement.
The gdata1 and gcdata1 define the color and contrast color
This works with SAS9.4M2
There might be better ways of doing this.
Hi,
Have a look through this blog: http://blogs.sas.com/content/graphicallyspeaking/
Its an excellent resource for anything graph.
As for your second point, what does the code look like? Gotta say I have never used HTML as an output destination, but haven't seen any major differences betwee, PDF/RTF etc.
First Question
The outline is controlled by the "contrast" color, see code example below that shows two techniques using a style and using the new STYLEATTRS statement.
The gdata1 and gcdata1 define the color and contrast color
This works with SAS9.4M2
There might be better ways of doing this.
Bruno Mullers answer solves the first problem. Thanks. However the problem where the datalabels are missing on the RTF is more severe, and urgently would need to get it fixed. Any help is much appreciated.
Found the solution myself. For some reason Google will always show me 9.3 documentation results only. Now I found the 9.4 documentation which is much broader. The correct option is DATALABELFITPOLICY=NONE
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: