Help using Base SAS procedures

proc gchart, Vbar seems to have too much margins.

Reply
Frequent Contributor
Posts: 115

proc gchart, Vbar seems to have too much margins.

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;
N/A
Posts: 0

Re: proc gchart, Vbar seems to have too much margins.

My level is low, but you may try other Goptions such as HPOS
Ask a Question
Discussion stats
  • 1 reply
  • 98 views
  • 0 likes
  • 2 in conversation