private static XYDataset createDataset()
 {
   TimeSeries series1 = new TimeSeries((IComparable) "L&G European Index Trust");
   series1.add((RegularTimePeriod) new Month(2, 2001), 181.8);
   series1.add((RegularTimePeriod) new Month(3, 2001), 167.3);
   series1.add((RegularTimePeriod) new Month(4, 2001), 153.8);
   series1.add((RegularTimePeriod) new Month(5, 2001), 167.6);
   series1.add((RegularTimePeriod) new Month(6, 2001), 158.8);
   series1.add((RegularTimePeriod) new Month(7, 2001), 148.3);
   series1.add((RegularTimePeriod) new Month(8, 2001), 153.9);
   series1.add((RegularTimePeriod) new Month(9, 2001), 142.7);
   series1.add((RegularTimePeriod) new Month(10, 2001), 123.2);
   series1.add((RegularTimePeriod) new Month(11, 2001), 131.8);
   series1.add((RegularTimePeriod) new Month(12, 2001), 139.6);
   series1.add((RegularTimePeriod) new Month(1, 2002), 142.9);
   series1.add((RegularTimePeriod) new Month(2, 2002), 138.7);
   series1.add((RegularTimePeriod) new Month(3, 2002), 137.3);
   series1.add((RegularTimePeriod) new Month(4, 2002), 143.9);
   series1.add((RegularTimePeriod) new Month(5, 2002), 139.8);
   series1.add((RegularTimePeriod) new Month(6, 2002), 137.0);
   series1.add((RegularTimePeriod) new Month(7, 2002), 132.8);
   TimeSeries series2 = new TimeSeries((IComparable) "L&G UK Index Trust");
   series2.add((RegularTimePeriod) new Month(2, 2001), 129.6);
   series2.add((RegularTimePeriod) new Month(3, 2001), 123.2);
   series2.add((RegularTimePeriod) new Month(4, 2001), 117.2);
   series2.add((RegularTimePeriod) new Month(5, 2001), 124.1);
   series2.add((RegularTimePeriod) new Month(6, 2001), 122.6);
   series2.add((RegularTimePeriod) new Month(7, 2001), 119.2);
   series2.add((RegularTimePeriod) new Month(8, 2001), 116.5);
   series2.add((RegularTimePeriod) new Month(9, 2001), 112.7);
   series2.add((RegularTimePeriod) new Month(10, 2001), 101.5);
   series2.add((RegularTimePeriod) new Month(11, 2001), 106.1);
   series2.add((RegularTimePeriod) new Month(12, 2001), 110.3);
   series2.add((RegularTimePeriod) new Month(1, 2002), 111.7);
   series2.add((RegularTimePeriod) new Month(2, 2002), 111.0);
   series2.add((RegularTimePeriod) new Month(3, 2002), 109.6);
   series2.add((RegularTimePeriod) new Month(4, 2002), 113.2);
   series2.add((RegularTimePeriod) new Month(5, 2002), 111.6);
   series2.add((RegularTimePeriod) new Month(6, 2002), 108.8);
   series2.add((RegularTimePeriod) new Month(7, 2002), 101.6);
   TimeSeriesCollection seriesCollection = new TimeSeriesCollection();
   seriesCollection.addSeries(series1);
   seriesCollection.addSeries(series2);
   return (XYDataset) seriesCollection;
 }
 public static TimeSeriesCollection createMovingAverage(TimeSeriesCollection source, string suffix, int periodCount, int skip)
 {
   if (source == null)
   {
     string str = "Null 'source' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (periodCount < 1)
   {
     string str = "periodCount must be greater than or equal to 1.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     TimeSeriesCollection seriesCollection = new TimeSeriesCollection();
     for (int series1 = 0; series1 < source.getSeriesCount(); ++series1)
     {
       TimeSeries series2 = source.getSeries(series1);
       TimeSeries movingAverage = MovingAverage.createMovingAverage(series2, new StringBuffer().append((object) series2.getKey()).append(suffix).toString(), periodCount, skip);
       seriesCollection.addSeries(movingAverage);
     }
     return seriesCollection;
   }
 }