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);

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 800 views
  • 0 likes
  • 3 in conversation