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?
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
Fabulous! I had to increase the StrokeThickness on the MinorGridLine to 1.5, otherwise it would still get a hint of the MajorGridLine. Other than that, it works like a charm.
Thanks, Petar!