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

The graph would display fine in the application but once it's exported to pdf, it got messed up. Is there a way to fix this?

 

Here's the program and data:

 

ods pdf file="Covid_B3.pdf";

title "COVID-19 EXPERIENCES";

proc sgplot data=b3_covid;

vbarparm category=symptoms response=frequency ;

title2 "B3. Which of the following occurred as a result of your symptoms? ";

xaxis discreteorder=data display=(nolabel) ;

run; quit; title;

ods pdf close;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

You need a special option:

 

libname x v9 'c:\temp';

ods pdf file="c:\temp\Covid_B3.pdf";
title "COVID-19 EXPERIENCES";
title2 "B3. Which of the following occurred as a result of your symptoms? ";
proc sgplot data=x.b3_covid;
vbarparm category=symptoms response=frequency ;
xaxis discreteorder=data display=(nolabel) fitpolicy=split;
run;  title;
ods pdf close;

View solution in original post

1 REPLY 1
Ksharp
Super User

You need a special option:

 

libname x v9 'c:\temp';

ods pdf file="c:\temp\Covid_B3.pdf";
title "COVID-19 EXPERIENCES";
title2 "B3. Which of the following occurred as a result of your symptoms? ";
proc sgplot data=x.b3_covid;
vbarparm category=symptoms response=frequency ;
xaxis discreteorder=data display=(nolabel) fitpolicy=split;
run;  title;
ods pdf close;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 417 views
  • 1 like
  • 2 in conversation