|
x-axis values on a dual y-axis chart |
Posted by Larry on Mar-09-2010 03:41 |
|
Peter,
Is it necessary for the x-axis values to be identical for data plotted to dual y-axes? More specifically, will Chart Director appropriately plot a scatter plot using x = (1, 2, 3, 4, 5, 6), y = (2, 4, 6, 5, 3, 2) and another scatter plot using a different y axis but the same x axis using x=(2.5, 4, 5.3) and y = (122, 223, 354)?
many thanks for your attention.
Larry |
Re: x-axis values on a dual y-axis chart |
Posted by Peter Kwan on Mar-09-2010 18:31 |
|
Hi Larry,
It is not necessary for the x-coordinates to be the same. You can use different x and y coordiantes for the two data series.
For example, in VB/VBScript, it is like:
Set layer1 = c.addScatterLayer(dataSeriesX1, dataSeriesY1, .....)
Set layer2 = c.addScatterLayer(dataSeriesX2, dataSeriesY2, .....)
Call layer2.setUseYAxis2()
In the above, the dataSeriesX1 can be different from dataSeriesX2. The two scatter layers will use two different y-axes.
Hope this can help.
Regards
Peter Kwan |
|