Date: Fri, 7 Nov 2008 09:07:08 -0500
Reply-To: "Bross, Dean S" <dean.bross@VA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Bross, Dean S" <dean.bross@VA.GOV>
Subject: Re: SAS graph How to align two graphs, same data
In-Reply-To: <lsqdnYGm7vzvF47UnZ2dnUVZ_qTinZ2d@giganews.com>
Content-Type: text/plain; charset="us-ascii"
It is possible that the ORIGIN option on the AXIS statement may help
you solve this problem.
I have never tried this so I can't be more specific.
-----Original Message-----
From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
On Behalf Of Red Eagle
Sent: Thursday, November 06, 2008 7:23 PM
To: sas-l@uga.edu
Subject: SAS graph How to align two graphs, same data
Imagine are 2 simple SAS graphs which share the exact same horizontal
data.
One chart is a line graph the other is a vertical bar chart.
The output goes into one ODS html file and the charts show one above the
other;
but with too much space between them, sadly. That too is a problem.
However the
more important question is, is it possible to line up the charts such
that the
horizontal axis on each graph is aligned when one is displayed above the
other?
They do display one above the other, but not lined up. It seems they are
each
centered separately. I tried Proc Template and it removes the mouse
over. :-(
They are created using Device=Java to meet the need for showing values
when the
mouse is moved over them. I set xpixels=1000 and ypixels600 for the line
graph,
and changed the ypixels for the bar chart to 200.
The line graph has vertical lines, every 12 points. The bar chart has
none,
because it has proven so far to be impossible because of data grouping,
using
'group'. Well, now I wonder if it might work if the line chart also had
no
vertical lines. Does anyone know.
Any suggestions appreciated.
Thanks in advance!
|