none
plotting lines on chart RRS feed

  • Question

  • I've plotted lines on chart tool but i do not  know how to set max and min value of y axis, for ex. max=100, min=-100.

    The plotting works always in autoranging mode.

    Thanks, Enzo

    Monday, November 19, 2018 10:29 PM

All replies

  • Hi,

    try the code:

    Chart1.ChartAreas(0).AxisY.Maximum = 100
            Chart1.ChartAreas(0).AxisY.Minimum = -100

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 20, 2018 1:34 AM
  • Thanks Alex, it works,

    Enzo

    Tuesday, November 20, 2018 9:33 AM
  • Hi,

    I am glad you have solved your issue. It would be appreciated if you could  mark it as an answer.

    Best Regards,

    Alex


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, November 20, 2018 9:37 AM