LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 20 Apr 2009 15:06:35 -0400
Reply-To:     Randy Herbison <RandyHerbison@WESTAT.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Randy Herbison <RandyHerbison@WESTAT.COM>
Subject:      Re: GCHART: Sizing Graphs
Comments: To: Ya Huang <ya.huang@AMYLIN.COM>
In-Reply-To:  <200904201746.n3KHWfx4024740@malibu.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"

Ya,

SPACE=0 gets me closer to the target.

Thanks, Randy

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ya Huang Sent: Monday, April 20, 2009 1:47 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: GCHART: Sizing Graphs

I added cback=yellow to see how much space the bar takes in the total space. Looks like simply add space=0 as a hbar option can dramatically increase the bar size/ total size ratio. Not sure if it's big enough for you though.

hbar var / sumvar=val coutline=black noframe nostats noaxis nolegend space=0 ;

On Mon, 20 Apr 2009 13:07:10 -0400, Randy Herbison <RandyHerbison@WESTAT.COM> wrote:

>Hi, > >I would like to: > >1. Generate a horizontal bar chart with only one bar. >2. Make the total graph size as close as possible to the bar size. > >The code below generates a bar that works in terms of the bar size, but the total size of the graph is much larger than the bar. I'd like to shrink the total graph space to the size of the bar without reducing the bar size. > >Thanks, >Randy > > >filename go "%sysfunc(pathname(work))"; > >data testData; >var='A1'; val=85; output; >var='A1'; val=6; output; >var='A1'; val=9; output; >run; > >ods listing close; >ods html body='test.html' path=go style=journal; > >goptions reset=all; >goptions vsize=1.7in hsize=4in device=png gsfname=go; > >proc gchart data=testData; > hbar var / sumvar=val > coutline=black > noframe > nostats > noaxis > nolegend; >run; >ods listing; >ods html close;


Back to: Top of message | Previous page | Main SAS-L page