BookmarkSubscribeRSS Feed
jyothisri
Fluorite | Level 6

Hi all,

I wrote the program below and the title was bold, but labels are not.

Any tips on how to turn the labels of x and y axis into bold ? Thank you !

PROC SGPLOT DATA = HypAnl.HypAnalysis1;
VBOX DBP / CATEGORY = EthRaceCd;
LABEL DBP = 'Latest DBP Measurement';
LABEL EthRaceCd = 'Ethnicity/RaceGroup';
TITLE 'Diastolic blood pressures by ethnicity/RaceGroup';
RUN;

3 REPLIES 3
kristiepauly1
Fluorite | Level 6

You have XAXIS and YAXIS LABEL(s) but I believe you need to define them as such, ie XAXIS LABEL = 'Ethnicity Race code ' and then use LABELATTRS = (WEIGHT = BOLD), same for YAXIS.

 

ballardw
Super User

The XAXIS and YAXIS statements have the option LABELATTRS that can assign color, font, size and weight (i.e. BOLD) to the text.

 

Xaxis labelattrs=(weight=Bold );

 

for example.

jyothisri
Fluorite | Level 6

Thank you !! I shall go ahead and try that.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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