using Imsl.Chart2D; using System.Drawing; public class SampleAxesLeftRight : FrameChart { public SampleAxesLeftRight() { Chart chart = this.Chart; AxisXY axisLeft = new AxisXY(chart); double[] yLeft = {4, 6, 2, 1, 8}; Data dataLeft = new Data(axisLeft, yLeft); dataLeft.DataType = Data.DATA_TYPE_LINE; axisLeft.LineColor = Color.Blue; axisLeft.TextColor = Color.Blue; AxisXY axisRight = new AxisXY(chart); axisRight.AxisX.IsVisible = false; axisRight.AxisY.Type = Axis1D.AXIS_Y_RIGHT; double[] yRight = {85, 23, 46, 61, 32}; Data dataRight = new Data(axisRight, yRight); dataRight.DataType = Data.DATA_TYPE_LINE; axisRight.LineColor = Color.Pink; axisRight.TextColor = Color.Pink; } public static void Main(string[] argv) { System.Windows.Forms.Application.Run(new SampleAxesLeftRight()); } }