Inheritance: ObservableObject
        private void InitSeries()
        {
            var cpuSeries = new DataSeries();
            cpuSeries.Title = "CPU %";
            cpuSeries.PlotColor = ConsoleColor.DarkGreen;
            cpuSeries.PlotCharacter = 'c';
            cpuSeries.ShowAreaUnderEachDataPoint = true;

            // optionally define a threshold for a series
            cpuSeries.Threshold = new Threshold() { Value = 40, Title = "CPU Warning threshold", Type = ThresholdType.Maximum, PlotColor = ConsoleColor.DarkGreen };

            var memSeries = new DataSeries();
            memSeries.Title = "Memory %";
            memSeries.PlotColor = ConsoleColor.DarkMagenta;
            memSeries.PlotCharacter = 'm';
            memSeries.Threshold = new Threshold() { Value = 80, Title = "Memory Warning threshold" , Type = ThresholdType.Maximum, PlotColor = ConsoleColor.DarkMagenta};

            ViewModel.DataSeriesCollection.Add(memSeries);
            ViewModel.DataSeriesCollection.Add(cpuSeries);
        }
 private void SeriesRemoved(DataSeries series)
 {
     this.FirePropertyChanged("DataSeriesCollection");
     series.DataPoints.Added.Unsubscribe(DataPointAdded);
     ResetFocusedSeries();
 }
 private void SeriesAdded(DataSeries series)
 {
     this.FirePropertyChanged("DataSeriesCollection");
     series.DataPoints.Added += DataPointRemoved;
     ResetFocusedSeries();
 }