Menu

How to add a line object on second axis

Help
Anonymous
2011-12-21
2012-09-19
  • Anonymous

    Anonymous - 2011-12-21

    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?

     
  • Anonymous

    Anonymous - 2012-01-05

    This should do it:

    myLine.Location.CoordinateFrame = CoordType.AxisXY2Scale;

     

Log in to post a comment.

MongoDB Logo MongoDB