Hello,
I have a graph that has a Y axis and also a Y2 axis. I would like to add a line but have that refer to the Y2 axis:
I have code like:
LineObj myLine = new LineObj(Color.Black, 0, 50, 1000, 50);
pane.GraphObjList.Add(myLine)
However it appears on the Y axis and not the Y2 axis. How can I set the properties of this
so that it refers to Y2?
This should do it:
myLine.Location.CoordinateFrame = CoordType.AxisXY2Scale;
Log in to post a comment.
Hello,
I have a graph that has a Y axis and also a Y2 axis. I would like to add a
line but have that refer to the Y2 axis:
I have code like:
LineObj myLine = new LineObj(Color.Black, 0, 50, 1000, 50);
pane.GraphObjList.Add(myLine)
However it appears on the Y axis and not the Y2 axis. How can I set the
properties of this
so that it refers to Y2?
This should do it:
myLine.Location.CoordinateFrame = CoordType.AxisXY2Scale;