BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
keherder
Obsidian | Level 7

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! 

 

title "Job Postings by Organization Type (N=55)";
proc gchart data=azprc.jobs;
pie org_type2 / percent=outside;
;
format org_type2 org.;
run;
quit;
 
keherder_0-1650636223045.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
maguiremq
SAS Super FREQ

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

View solution in original post

1 REPLY 1
maguiremq
SAS Super FREQ

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: 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!

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.

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
  • 1 reply
  • 595 views
  • 1 like
  • 2 in conversation