[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Creating 2 line charts overlaped
Yoav,
> We have 2 line charts as follows:
>
> On the 1st chart, the Y Axis has a scale of 1 to 4 and the X Axis has a
> scale of 1 to 12 (Months). (e.g. data about avr. trans/sec)
>
> On the 2nd chart, the Y Axis has a scale of 1 to 100 and the X Axis has a
> scale of 1 to 12 (months) like on the 1st chart (e.g. data about avr. %cpu)
>
> We would like to overlap the 2 charts, so we will have only 1 chart with 2
> Y Axis scales and 1 - X Axis scale.
>
> So the chart would look something like this:
>
> 4 ! * * * ! 100
> ! * * * * !
> 3 ! * * !
> ! * ^^ ^^ !
> 2 ! ^^^^^ ^^^ ! 50
> ! ^^^^ ^^^ ^^^^^^^^^^ !
> 1 ! ^^^ !
> ! !
> !---------------------------------------------------! 0
> 1 2 3 4 5 6 7 8 9 10 11 12
>
> Any ideas how to implement this with SQR - Print-chart ?
You can't do it the way you're hoping to. Although you can have
two lines present in a single graph, you can't have two scales.
However, you CAN divide your y axis values for the second graph
by 25 and then use PRINT to place your own labels for the second
chart by hand. This is definitely a hack, but it may work for you.
Ray
P.S. Your desired feature is number 38 on my 'Top n SQR Enhancements'
page: http://www.ontko.com/sqr/enhancements.html.
----------------------------------------------------------------------
Ray Ontko | Ray Ontko & Co | "Time for a new signature line."
rayo@ontko.com | Richmond, In | See us at http://www.ontko.com/