This is one of the thing that is easy to do but no so obvious. I think mostly its lack of complete description of how charting controls provided in Silverlight toolkit work and how to manipulate them. When you draw charts like Line, Column, Bar etc., the grid line on DependentValue are rendered by default. There is a property ShowGridLines available on DisplayAxis class that is base class for axis. You just need to set its value to False. For example in my line chart I did not want to show grid lines on grid lines on Y axis. Following XAML snippets shows how I turned off rendering of grid lines on Y-axis.
<chartingToolkit:Chart Title="Latency" x:Name="latencyChart" BorderThickness="1">
<chartingToolkit:Chart.Series>
<chartingToolkit:LineSeries Title="Val 1"
DependentValueBinding="{Binding Threshold}"
IndependentValueBinding="{Binding IndependentValue}"
AnimationSequence="Simultaneous" />
<chartingToolkit:LineSeries Title="Val 2Latency"
DependentValueBinding="{Binding Current}"
IndependentValueBinding="{Binding IndependentValue}"
AnimationSequence="Simultaneous" />
<chartingToolkit:LineSeries Title="Val 3"
DependentValueBinding="{Binding Average}"
IndependentValueBinding="{Binding IndependentValue}"
AnimationSequence="Simultaneous" />
</chartingToolkit:Chart.Series>
<chartingToolkit:Chart.Axes>
<chartingToolkit:LinearAxis Orientation="Y" ShowGridLines="False"/>
</chartingToolkit:Chart.Axes>
</chartingToolkit:Chart
How to plan CCSP Exam preparation
Develop a MongoDB pipeline to transform data into time buckets
Alert and Confirm pop up using BootBox in AngularJS
AngularJS Grouped Bar Chart and Line Chart using D3
How to lock and unlock account in Asp.Net Identity provider
2025 © Byteblocks, ALL Rights Reserved. Privacy Policy | Terms of Use