SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
marysmith
Calcite | Level 5

Dear Community,

 

I just dont know how to change the color in my sgplot nothing works.

Can anybody help?

 

thanks in advance!

 

proc sgplot data=datensatz_1416_Erstanzeige;
yaxis label="Number of studies" max=200;
vbar year /
barwidth=0.5
/markerattrs=(color=CX16A629) ;
title 'Number of studies per year';
run;

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @marysmith,

 

Try this:

vbar year / barwidth=0.5 fillattrs=(color=CX16A629);

(You use VBAR, but the subject line says VBOX.)

View solution in original post

2 REPLIES 2
FreelanceReinh
Jade | Level 19

Hello @marysmith,

 

Try this:

vbar year / barwidth=0.5 fillattrs=(color=CX16A629);

(You use VBAR, but the subject line says VBOX.)

RW9
Diamond | Level 26 RW9
Diamond | Level 26

I nothing works, then no-body will be able to help you.  Perhaps start by stating what software, Enterprise Guide, Base, etc.  What output destination you are outputting to.  Show some test data so we have something to run against.

This post might help:

https://communities.sas.com/t5/SAS-GRAPH-and-ODS-Graphics/How-to-make-a-bar-chart-and-assign-the-bar...

 

You can also browse here:

https://blogs.sas.com/content/graphicallyspeaking/

To find many examples of all kinds of graphs.

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
  • 2 replies
  • 1771 views
  • 0 likes
  • 3 in conversation