Hi all! I'm hoping this might be an easy fix. I am trying to make a pie chart using PROC GCHART and I would just like to remove the second title "FREQUENCY of org_type2". Anyone know how to do this? Thanks!
Use the `noheading` option in the `pie` call.
data jobs;
infile datalines dsd missover;
input org_type2 :$25.;
datalines;
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Health Plan
Health Plan
Health Plan
Health Plan
Other
Other
Clinic
;
title "Job Postings by Organization Type (N=55)";
proc gchart data=work.jobs;
pie org_type2 / percent=outside noheading;
;
run;
quit;
NOHEADING suppresses the heading that is normally printed at the top of each page or display of output for all devices except Java and ActiveX.
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p13h0w5vhbfvern1a23b0f3lvfyh.htm
Use the `noheading` option in the `pie` call.
data jobs;
infile datalines dsd missover;
input org_type2 :$25.;
datalines;
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Non-Profit or CBO
Health Plan
Health Plan
Health Plan
Health Plan
Other
Other
Clinic
;
title "Job Postings by Organization Type (N=55)";
proc gchart data=work.jobs;
pie org_type2 / percent=outside noheading;
;
run;
quit;
NOHEADING suppresses the heading that is normally printed at the top of each page or display of output for all devices except Java and ActiveX.
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p13h0w5vhbfvern1a23b0f3lvfyh.htm
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.