graph size and adjust position

Reply
Frequent Contributor
Posts: 115

graph size and adjust position

Hi,

Attached graph is occupied more border, but graph is very small. How can i adjust the graph position to top level in page. Also want to reduce h-axis bar length(its occupied till right most).

Could you please help me on reduce the frame size and adjust the graph to top. Also help me on reduce h-axis bar length.


graph.jpg
Frequent Contributor
Posts: 115

Re: graph size and adjust position

Posted in reply to sunilreddy

I am using below code to generate graph, i want to adjust frame size and adjsut graph position to top


options locale=sv_se;
goptions device=png xpixels=500 ypixels=500;
goptions noborder;


footnote;
goptions htext=8pt ftext="arial" ;

axis1 label=none value=none offset=(2,2);
axis2 label=none offset=(0,6)
  style=0 major=none minor=none value=none;
axis3 label=none value=none order=('Requested last 12 m' 'Forecast next 12 m') offset=(0.7);
legend1 label=none across=1 position=(bottom right inside) mode=protect
  shape=bar(.07in,.07in) order=('Requested last 12 m' 'Forecast next 12 m');

data bar_anno;
  set market_update_cu_graph2;
  length function $8 text $100;
  xsys='2';
  ysys='2';
  when='a';
  function='label';
  color='black';
  position='6';
  angle=360;
  group=SORTROW;
  midpoint=TIME_PERIOD;
  x=value;
  text=' '||trim(left(put(VALUE,nlnum20.)));
run;

pattern1 v=solid color=cx333399;
pattern2 v=solid color=cx788cca;

proc gchart data=market_update_cu_graph2 anno=bar_anno;
  hbar TIME_PERIOD / type=sum sumvar=VALUE nostat
  group=SORTROW
  subgroup=TIME_PERIOD
  raxis=axis2
  maxis=axis3
  space=0 noframe
  legend=legend1
  des='';
run;
quit;

Ask a Question
Discussion stats
  • 1 reply
  • 176 views
  • 0 likes
  • 1 in conversation