BookmarkSubscribeRSS Feed
Jaime
Fluorite | Level 6
Hello all,

I am using gchart to create a histogram. It works file when i run it alone. But when I set goption device to GIF the chart is shrunk to the middle and way to much left and right margins appear on the chart. Has anyone come across this before?

goptions reset= all;
goptions device=jpeg;
goptions gunit=pct border ;
goptions ftext=arial htext=2 pct;


pattern1 value=solid color=lightblue ;
pattern2 value=solid color=lightyellow;
pattern3 value=solid color=lightbrown;
*goptions reset=pattern;
title 'Cases , Processed vs Still Pending' font=Arial;
axis1 label=(a=90 'Cases' font="arial/bold" height=2)
value=(font="Arial" height=2 /* angle=90 */) offset=(0,0);
axis2 label=(a=0 'Week Ending On' font="Arial/bold" height=2)
value=(font="arial" height=2 /* angle=90 */) ;
proc gchart data=Chart_1 anno=Chart_1_Anno;
vbar Week_Ends/subgroup=Status sumvar=Cases
discrete
space=.5
noframe
coutline=black
raxis=axis1
maxis=axis2;
format Week_Ends MMDDYY5.0;
/*where Week_Ends between today()-7*7 and today()+7 ; */
run;
quit;
1 REPLY 1
deleted_user
Not applicable
My level is low, but you may try other Goptions such as HPOS

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 601 views
  • 0 likes
  • 2 in conversation