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
375
Help with grid lines
posted

I have situation that I have been unable to figure out regarding grid lines in XamChart.  As the graphic below shows, I have a series of data with various points on a line chart.  Right now, the major grid line is on the datapoint, but what I would like to do is have the vertical grid lines drawn at the half point as shown by the yellow lines that I have drawn in manually and no grid line at the datapoint associated with the X-axis label.  Is that possible?

Parents
  • 27093
    Verified Answer
    posted

    Hello ,

     

    I have been looking into this and have created a xaml snippet that should do what you want. It sets the X axis’ MinorGridLines and its MajorGridLines on top:

     

    <igChart:Axis AxisType="PrimaryX"    >

        <igChart:Axis.MajorGridline>

            <igChart:Mark Visible="True" Unit="0.5" StrokeThickness="0.7" Stroke="Yellow" />

        </igChart:Axis.MajorGridline>

        <igChart:Axis.MinorGridline>

            <igChart:Mark Visible="True"  Unit="1"  Stroke="Black" />

        </igChart:Axis.MinorGridline>

    </igChart:Axis>

     

    Hope this is what you need. Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support

     

Reply Children
No Data