How do I specify the color of the bars when using proc gbarline (ie bar inj)?
Thank you.
proc gbarline data=test;
bar inj / sumvar=emp_avg
discrete;
plot / sumvar=rate;
run;quit
And also, if you're using the subgroup= so that the bars have multiple segments, you can control those colors using multiple pattern statements, such as:
And, if you don't specify a color, then the ods style that's being used controls the color, which is another way to control it.
The 2025 SAS Hackathon Kicks Off on June 11!
Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.