private void AllData_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     foreach (DataToChart data in e.NewItems)
     {
         // Make a series for the line
         ScatterLineSeries scatterLineSeries = new ScatterLineSeries
         {
             Name          = $"Line {LineCount}",
             ItemsSource   = data.DataPoints,
             XValueBinding = new PropertyNameDataPointBinding("XValue"),
             YValueBinding = new PropertyNameDataPointBinding("YValue"),
             DisplayName   = $"Line {LineCount}",
             LegendTitle   = $"Line {LineCount}",
         };
         ChartTrackBallBehavior.SetIntersectionTemplate(scatterLineSeries, ChartTrackIntersectionTemplate);
         // Add the line to the Chart's Series collection
         MainChart.Series.Add(scatterLineSeries);
         // Increment arbitrary counter
         LineCount++;
     }
 }