I am having trouble with changing the colors of certain bars by variable in SGPANEL. I want the response variable "Yes" to be one color and "No" to be another color. I am using SAS University. I want the colors limegreen and darkcyan. Here is my code and a screenshot:
title2 h=12pt'Percent of Americans Aged 20 and Older Who Adhered to Cholesterol Screening Guidelines by Insurance and Routine Care Provider, 2011-2012'; proc sgpanel data=nh.crossfinal; styleattrs datacolors=(limegreen darkcyan); panelby cho5years care; rowaxis label="Percent" grid max=100.0; vbar ins / response=percent filltype=solid dataskin=gloss name='ins' fill datalabel fillattrs=(color=limegreen); label ins='Insurance' care='Routine Care' cho5years='Cholesterol Screening'; format ins decision. care decision.; run; title2;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.