I have a chart with 1000 data points, and I am wondering how to delete data points? They significantly slow down the whole process. I investigated the need for a style change, is there any other way?
Deleting (collapsing) DataPoints in LineSeries?
<Grid>
<chartingToolkit:Chart
Width="Auto" Height="Auto"
Background="Transparent" Panel.ZIndex="3">
<chartingToolkit:LineSeries Title="Symbol" Background="Transparent"
IndependentValueBinding="{Binding Path=Key}"
DependentValueBinding="{Binding Path=Value}"
ItemsSource="{Binding Path=SymbolData}"
DataContext="{Binding}">
<chartingToolkit:LineSeries.DataPointStyle>
<Style TargetType="{x:Type chartingToolkit:LineDataPoint}">
<Setter Property="Background" Value="Red"/>
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
</chartingToolkit:LineSeries.DataPointStyle>
</chartingToolkit:LineSeries>
</chartingToolkit:Chart>
</Grid>
I thought the code above would work, but apparently not ...
Further research, even this answer did not help: /
Remove markers from a row or silverlight series
Cheers for help.
source
share