Search code examples
c#winformslivecharts

How to hide background grid lines in live chart?


I am using live charts for my winform application graph. In this I want to hide background grid lines based on user action. Is there any default option for that ?

www.lvcharts.net


Solution

  • You can do it by adjusting strokethickness of the graph. As shown below :

    cartesianChart.AxisX[0].Separator.StrokeThickness = 0;
    cartesianChart.AxisY[0].Separator.StrokeThickness = 0;