Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
Change vertical/horizontal default lines on a LineChart
posted

Is there a way to change the color and thickness of the  vertical/horizontal default lines on a LineChart

  • 9836
    Verified Answer
    posted

    Yes, you can change the default MajorGridLines of the axis as follows:

    <igCA:XamChart.Axes>

                    <igCA:Axis AxisType="PrimaryX">

                        <igCA:Axis.MajorGridline>

                            <igCA:Mark  Stroke="Red" StrokeThickness="2"/>

                        </igCA:Axis.MajorGridline>

                    </igCA:Axis>

                    <igCA:Axis AxisType="PrimaryY">

                        <igCA:Axis.MajorGridline>

                            <igCA:Mark  Stroke="Blue" StrokeThickness="2"/>

                        </igCA:Axis.MajorGridline>

                    </igCA:Axis>

    </igCA:XamChart.Axes>