The example program RTStockDisplay demonstrates how to combine different coordinate systems in the same real-time chart. You will need one scroll frame for each unique coordinate system, so in your case it sounds like you will need two scroll frames: one with three RTProcessVar objects attached to it, and the other with two.
You add a second y-axis title the same way you add the first. AxisTitle yAxisTitle2 = new AxisTitle(yaxis2, theFont, "YAxis2"); yAxisTitle2.SetYJust(ChartObj.JUSTIFY_MIN); chartVu.AddChartObject(yAxisTitle2);
The call to SetYJust is required to bottom justify a title placed to the right of the axis labels.
|