This project is read-only.

Charting - How to remove line data points


I have a Line Series chart with Line data points in it. how do i clear the old data points when i bind it new data.

my Code is
                        <chartingToolkit:Chart Name="LowCusumChart" >
                                <Style x:Key="LCuRules" TargetType="{x:Type chartingToolkit:LineDataPoint}">
                                    <Setter Property="Template" >
                                            <ControlTemplate x:Name="LCTemplate" TargetType="{x:Type chartingToolkit:LineDataPoint}">
                                                <Canvas x:Name="LNPlotArea" Margin="0,5,0,5" >
                                                    <Border BorderBrush="Purple" BorderThickness="2" Visibility="{Binding Path= CRules, Converter={StaticResource NullVisibility}}">
                                                        <Label  Foreground="Purple"  Content="{Binding Path=CRules}"  />

                                    <Setter Property="Background" Value="Black" />

                                <chartingToolkit:LineSeries Name="LowCusumSeries" Title="Cusum" IndependentValueBinding="{Binding Path= EntryDate}" DependentValueBinding="{Binding Path=Cusum}"  >                                           
public class CusumChart
public string EntryDate { get; set; }
public double? Cusum { get; set; }
public string CRules { get; set; }.
public bool CsrVisible { get; set; }

ObservableCollection<CusumChart> Values {get;set;}

Values.Add(new CusumChart {EntryDate="28/03/2017", Cusum=3.2,CRules="CsrRule",CsrVisible=true});