Reputation: 2025
I want to remove Gridlines form Chart to achieve that I have written following code but without success.
<Charts:AxisX ShowMajorGridlines="False">
<Charts:AxisX.LabelOptions>
<Charts:AxisLabelOptions Foreground="White"/>
</Charts:AxisX.LabelOptions>
</Charts:AxisX>
How to remove gridlines form chart ??
Note: Here I am attaching a sample application along with a screenshot for better understanding please take a moment to review it.
Thanks & regards, Rudresh Bhatt
Upvotes: 1
Views: 564
Reputation:
To remove horizontal grid line set AxisY 's ShowMajorGridlines property to false. Therefore the mark up will be like
<Charts:CartesianChart.AxisY>
<Charts:AxisY ShowMajorGridlines="False" />
</Charts:CartesianChart.AxisY>
Thanks
Upvotes: 1