Hi there,
I am looking to try to use the angle function when creating a chart in SAS. Here is my code, but the lables are still horizontal. Your advice is appreciated!
proc format;
value insure 1='Yes' 2='No';
value race 1='Mexican American' 2='Other Hispanic' 3='Non-Hispanic White' 4='Non-Hispanic Black' 6='Non-Hispanic Asian' 7='Other Race - Including Multi-Racial';
run;
proc gchart data=levy.nhanesdata;
vbar HIQ011/group=RIDRETH3 midpoints=1 to 2 by 1;
format HIQ011 insure.;
format RIDRETH3 race.;
*Axis and pattern control;
*horizontal axis;
axis3 value=(angle=55);
title1 'Figure 2. Number of people with & without health insurance compared by race and ethnicity';
run;
Axis statements, like title statements, are global. This means they are not part of the procedure.
You could define your title and axis3 before the proc gchart line.
And you then have to use the axis3 definition in your vbar statement as explained above.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.