Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
LarissaW
Obsidian | Level 7

Hi guys, I'm looking for a way to change the color of the bar outline. The bar I made contains two cate variables and thereby I use group=statement making group cluster. I change the fill to dark gray and light gray for each group but the bar outline is still the default blue and red.

 

Is there a way that I can match the color of the bar and its outline? or any way to make the outline invisible?

 

Below is my current codes:

 

proc sgplot data=l10 ;
format CURSMOKE CURSMOKE. educ educ.;
styleattrs datacolors=(grol grg);
vbar educ / group=CURSMOKE filltype=solid clusterwidth=0.5 groupdisplay=cluster;
yaxis label='Number of Patients' labelattrs=(size=12);
xaxis label='Attained Education' labelattrs=(size=12);
RUN;

2 REPLIES 2
Ksharp
Super User
Try 'nooutline' option:

vbar educ / group=CURSMOKE filltype=solid clusterwidth=0.5 groupdisplay=cluster nooutline ;
LarissaW
Obsidian | Level 7
Thank you! It works

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 2 replies
  • 604 views
  • 1 like
  • 2 in conversation