hi guys i want to hide some of the horizontal lines from chart but not all
means if there are five lines so i just want to show two of them is it possible ?
or is there any way that i can show only two line not all five ?
regards .
Hi,
If I understood correctly, you can change the number of the horizontal lines using the Unit property of the GridlineGroup element.
For more information about the Unit property you can take a look here: http://help.infragistics.com/NetAdvantage/DV/2009.2/CLR3.5/?page=SL_DV_xamWebChart_Add_Grid_Lines_to_an_Axis.html
Please note the following code. Here the chart shows horizontal lines on every 2 units on the Y axis:
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
<Grid x:Name="LayoutRoot">
<igChart:XamWebChart x:Name="myChart" Width="300" Height="300">
<igChart:XamWebChart.Axes>
<igChart:Axis AxisType="PrimaryY" AutoRange="True">
<igChart:Axis.MajorGridline>
<igChart:GridlineGroup Unit="2"/>
</igChart:Axis.MajorGridline>
</igChart:Axis>
</igChart:XamWebChart.Axes>
<igChart:XamWebChart.Series>
<igChart:Series ChartType="Column">
<igChart:Series.DataPoints>
<igChart:DataPoint Value="2" Label="First"/>
<igChart:DataPoint Value="5" Label="Second"/>
</igChart:Series.DataPoints>
</igChart:Series>
</igChart:XamWebChart.Series>
</igChart:XamWebChart>
</Grid>
This produces the following result:
Best regards,
Anatoli Iliev