Search Locate Previous Contents

chYSec – add a secondary Y-axis

It is often useful to plot two sets of data on the same graph, but against independent Y-axes (e.g. Price Index and Dollar conversion). This function sets up a new axis at the right, and resets the scaling so that the next set of data plotted will auto-range the new axis.


chPlot ‘first
chYsec
chPlot ‘second

See Dupax for a typical example.

It is possible to have more than two axes here. Use the XIntercept property as required to set a target point for each Y-axis and call chYSec as many times as you require, followed each time by an appropriate plot.



© Copyright Causeway Graphical Systems Ltd 2003