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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 684 views
  • 0 likes
  • 2 in conversation