BookmarkSubscribeRSS Feed
Daily1
Quartz | Level 8

I write title on my code but reflect not white form . pls correct my code 

data my_data;
format amount percentn7.0;
input barname $ 1-3 amount;
datalines;
1a. 1.00
1b. 0.30
1c. 0.75
1d. 0.55
1e. 0.55
1f. 0.75
;
run;
 ods html file="aa.html";
 title '1- Marine Protected Areas';
proc sgplot data=my_data noautolegend noborder pad=(left=12pct right=12pct);
styleattrs datacolors=(cx1d94da cxe6eef7 cxc7e3ff cx89cbf2 cx03c9b9 cx1d94da);
styleattrs backcolor=cx033567 wallcolor=cx033567;
vbarparm category=barname response=amount / group=barname
   groupdisplay=cluster nooutline
   datalabel datalabelattrs=(color=white size=13pt weight=bold);
yaxis display=(nolabel noticks noline) valueattrs=(color=white) values=(.2 to 1 by .2);
xaxis display=(nolabel noticks) valueattrs=(color=white size=13pt weight=bold);
run;

code output 

Daily1_1-1684999173913.png

 

i want 

Daily1_0-1684999145456.png

 

2 REPLIES 2
Ksharp
Super User
 title c=white h=2 '1- Marine Protected Areas';

Ksharp_0-1685008146238.png

 

Rick_SAS
SAS Super FREQ

Experts suggest using 0 as the baseline for the vertical axis of a bar chart. So please consider using 

values=(0 to 1 by .2);

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1150 views
  • 0 likes
  • 3 in conversation