Highlight axis line

Posted by: celophysis on 8 September 2017, 2:49 pm EST

  • Posted 8 September 2017, 2:49 pm EST


    having a LineChart with a y-axis facing negative and positive values my task is to highlight the zero line. This leads me to the question can we set a specific axis line / grid line to bold style or perhaps change the color of it?

    Thanks i.a.

  • Replied 8 September 2017, 2:49 pm EST

    <b><b></b></b>Celophysis  ,

    Yes, it is possible to set a color for the specific axis line. You will need to set the RulerLine property of the specific axis to a specified color.You can use a similar code to achieve the same.

    plotArea.XAxis.RulerLine = new FarPoint.Win.Chart.SolidLine(Color.Red);

    I have also attached a sample application for your reference .


    Best Regards,


  • Replied 8 September 2017, 2:49 pm EST

    ok, very nice, thanks a lot for your support. <img src="/emoticons/emotion-21.gif" alt="Yes" />
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels