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
825
GridLine Color in XamWebChart
posted

How do you change the GridLines in the XamWebChart to any other color than the default color? Also, how do you turn off the vertical gridlines?

Thanks

Parents
No Data
Reply
  • 17605
    posted

    Try using this code:

     

        <igCA:XamChart>
                <igCA:XamChart.Axes>
                    <igCA:Axis AxisType="PrimaryX">
                        <igCA:Axis.MajorGridline>
                            <igCA:Mark Visible="False" />
                        </igCA:Axis.MajorGridline>
                    </igCA:Axis>
                    <igCA:Axis AxisType="PrimaryY">
                        <igCA:Axis.MajorGridline>
                            <igCA:Mark Stroke="Red" />
                        </igCA:Axis.MajorGridline>
                    </igCA:Axis>
                </igCA:XamChart.Axes>

    You can read more about this here:

     http://help.infragistics.com/NetAdvantage/WPF/2010.3/CLR4.0/?page=xamChart_Add_Grid_Lines_to_an_Axis.html

Children
No Data