Hello -
Is there a way that I can control the formatting of how the percentages are displayed ('pct') to the right of each horizontal bar? It defaults to two decimal places and I would prefer it shows just one.
Thank you.
Neil
goptions border xpixels=1000 ypixels=200;
axis1 label=("Frequency");
axis2 label=("Student Location");
proc gchart data=ips.allvars1;
hbar Q7770 /
pct
descending
axis=axis1 maxis=axis2;
run;
In the very old PROC CHART, you should be able to add a format in the AXIS1 statement using the FORMAT= option.
You would be wise to start moving your work to the much newer (and feature packed) PROC SGPLOT.
Thank you. The specifics of the syntax of these graph options gets tricky.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.