Example usage for org.jfree.date MonthConstants JUNE

List of usage examples for org.jfree.date MonthConstants JUNE

Introduction

In this page you can find the example usage for org.jfree.date MonthConstants JUNE.

Prototype

int JUNE

To view the source code for org.jfree.date MonthConstants JUNE.

Click Source Link

Document

Constant for June.

Usage

From source file:edu.ucla.stat.SOCR.chart.demo.EventFrequencyDemo1.java

/**
 * Creates a sample dataset.//from w w w . j  a  v a2  s . c  o  m
 * 
 * @return A sample dataset.
 */
protected CategoryDataset createDataset(boolean isDemo) {
    if (isDemo) {
        DefaultCategoryDataset dataset = new DefaultCategoryDataset();

        // initialise the data...
        Day d1 = new Day(12, MonthConstants.JUNE, 2002);
        Day d2 = new Day(14, MonthConstants.JUNE, 2002);
        Day d3 = new Day(15, MonthConstants.JUNE, 2002);
        Day d4 = new Day(10, MonthConstants.JULY, 2002);
        Day d5 = new Day(20, MonthConstants.JULY, 2002);
        Day d6 = new Day(22, MonthConstants.AUGUST, 2002);

        dataset.setValue(new Long(d1.getMiddleMillisecond()), "Series 1", "Requirement 1");
        dataset.setValue(new Long(d1.getMiddleMillisecond()), "Series 1", "Requirement 2");
        dataset.setValue(new Long(d2.getMiddleMillisecond()), "Series 1", "Requirement 3");
        dataset.setValue(new Long(d3.getMiddleMillisecond()), "Series 2", "Requirement 1");
        dataset.setValue(new Long(d4.getMiddleMillisecond()), "Series 2", "Requirement 3");
        dataset.setValue(new Long(d5.getMiddleMillisecond()), "Series 3", "Requirement 2");
        dataset.setValue(new Long(d6.getMiddleMillisecond()), "Series 1", "Requirement 4");

        return dataset;
    } else {
        setArrayFromTable();
        String[][] x = new String[xyLength][independentVarLength];
        String[][] y = new String[xyLength][dependentVarLength];

        for (int index = 0; index < independentVarLength; index++)
            for (int i = 0; i < xyLength; i++)
                x[i][index] = indepValues[i][index];

        for (int index = 0; index < dependentVarLength; index++)
            for (int i = 0; i < xyLength; i++)
                y[i][index] = depValues[i][index];

        // create the dataset... 
        final DefaultCategoryDataset dataset = new DefaultCategoryDataset();

        //dependent 
        for (int j = 0; j < xyLength; j++)
            for (int i = 0; i < independentVarLength; i++) {
                //System.out.println("*"+x[j][i]+"*");
                if (x[j][i] != null && !x[j][i].equals("NaN") && x[j][i].length() != 0 && y[j][0] != null) {
                    Day day = DateParser.parseDay(x[j][i]);
                    dataset.addValue(new Long(day.getMiddleMillisecond()), y[j][0], independentHeaders[i]);
                }
            }

        return dataset;
    }

}

From source file:org.jfree.data.time.TimeSeriesTest.java

/**
 * Some tests to ensure that the createCopy(RegularTimePeriod,
 * RegularTimePeriod) method is functioning correctly.
 *//*www .j av a  2  s .c  o  m*/
@Test
public void testCreateCopy1() {
    TimeSeries series = new TimeSeries("Series", Month.class);
    series.add(new Month(MonthConstants.JANUARY, 2003), 45.0);
    series.add(new Month(MonthConstants.FEBRUARY, 2003), 55.0);
    series.add(new Month(MonthConstants.JUNE, 2003), 35.0);
    series.add(new Month(MonthConstants.NOVEMBER, 2003), 85.0);
    series.add(new Month(MonthConstants.DECEMBER, 2003), 75.0);

    try {
        // copy a range before the start of the series data...
        TimeSeries result1 = series.createCopy(new Month(MonthConstants.NOVEMBER, 2002),
                new Month(MonthConstants.DECEMBER, 2002));
        assertEquals(0, result1.getItemCount());

        // copy a range that includes only the first item in the series...
        TimeSeries result2 = series.createCopy(new Month(MonthConstants.NOVEMBER, 2002),
                new Month(MonthConstants.JANUARY, 2003));
        assertEquals(1, result2.getItemCount());

        // copy a range that begins before and ends in the middle of the
        // series...
        TimeSeries result3 = series.createCopy(new Month(MonthConstants.NOVEMBER, 2002),
                new Month(MonthConstants.APRIL, 2003));
        assertEquals(2, result3.getItemCount());

        TimeSeries result4 = series.createCopy(new Month(MonthConstants.NOVEMBER, 2002),
                new Month(MonthConstants.DECEMBER, 2003));
        assertEquals(5, result4.getItemCount());

        TimeSeries result5 = series.createCopy(new Month(MonthConstants.NOVEMBER, 2002),
                new Month(MonthConstants.MARCH, 2004));
        assertEquals(5, result5.getItemCount());

        TimeSeries result6 = series.createCopy(new Month(MonthConstants.JANUARY, 2003),
                new Month(MonthConstants.JANUARY, 2003));
        assertEquals(1, result6.getItemCount());

        TimeSeries result7 = series.createCopy(new Month(MonthConstants.JANUARY, 2003),
                new Month(MonthConstants.APRIL, 2003));
        assertEquals(2, result7.getItemCount());

        TimeSeries result8 = series.createCopy(new Month(MonthConstants.JANUARY, 2003),
                new Month(MonthConstants.DECEMBER, 2003));
        assertEquals(5, result8.getItemCount());

        TimeSeries result9 = series.createCopy(new Month(MonthConstants.JANUARY, 2003),
                new Month(MonthConstants.MARCH, 2004));
        assertEquals(5, result9.getItemCount());

        TimeSeries result10 = series.createCopy(new Month(MonthConstants.MAY, 2003),
                new Month(MonthConstants.DECEMBER, 2003));
        assertEquals(3, result10.getItemCount());

        TimeSeries result11 = series.createCopy(new Month(MonthConstants.MAY, 2003),
                new Month(MonthConstants.MARCH, 2004));
        assertEquals(3, result11.getItemCount());

        TimeSeries result12 = series.createCopy(new Month(MonthConstants.DECEMBER, 2003),
                new Month(MonthConstants.DECEMBER, 2003));
        assertEquals(1, result12.getItemCount());

        TimeSeries result13 = series.createCopy(new Month(MonthConstants.DECEMBER, 2003),
                new Month(MonthConstants.MARCH, 2004));
        assertEquals(1, result13.getItemCount());

        TimeSeries result14 = series.createCopy(new Month(MonthConstants.JANUARY, 2004),
                new Month(MonthConstants.MARCH, 2004));
        assertEquals(0, result14.getItemCount());
    } catch (CloneNotSupportedException e) {
        assertTrue(false);
    }
}

From source file:org.jfree.chart.demo.PriceVolumeDemo.java

/**
 * Creates a sample dataset.//w  w  w. ja v a  2  s  .c  o m
 *
 * @return A sample dataset.
 */
private XYDataset createPriceDataset() {

    // create dataset 1...
    final TimeSeries series1 = new TimeSeries("Price", Day.class);

    series1.add(new Day(2, MonthConstants.JANUARY, 2002), 95.565);
    series1.add(new Day(3, MonthConstants.JANUARY, 2002), 95.640);
    series1.add(new Day(4, MonthConstants.JANUARY, 2002), 95.710);

    series1.add(new Day(7, MonthConstants.JANUARY, 2002), 95.930);
    series1.add(new Day(8, MonthConstants.JANUARY, 2002), 95.930);
    series1.add(new Day(9, MonthConstants.JANUARY, 2002), 95.960);
    series1.add(new Day(10, MonthConstants.JANUARY, 2002), 96.055);
    series1.add(new Day(11, MonthConstants.JANUARY, 2002), 96.335);

    series1.add(new Day(14, MonthConstants.JANUARY, 2002), 96.290);
    series1.add(new Day(15, MonthConstants.JANUARY, 2002), 96.275);
    series1.add(new Day(16, MonthConstants.JANUARY, 2002), 96.240);
    series1.add(new Day(17, MonthConstants.JANUARY, 2002), 96.080);
    series1.add(new Day(18, MonthConstants.JANUARY, 2002), 96.145);

    series1.add(new Day(22, MonthConstants.JANUARY, 2002), 96.120);
    series1.add(new Day(23, MonthConstants.JANUARY, 2002), 96.015);
    series1.add(new Day(24, MonthConstants.JANUARY, 2002), 95.890);
    series1.add(new Day(25, MonthConstants.JANUARY, 2002), 95.8650);

    series1.add(new Day(28, MonthConstants.JANUARY, 2002), 95.880);
    series1.add(new Day(29, MonthConstants.JANUARY, 2002), 96.050);
    series1.add(new Day(30, MonthConstants.JANUARY, 2002), 96.065);
    series1.add(new Day(31, MonthConstants.JANUARY, 2002), 95.910);
    series1.add(new Day(1, MonthConstants.FEBRUARY, 2002), 96.015);

    series1.add(new Day(4, MonthConstants.FEBRUARY, 2002), 96.140);
    series1.add(new Day(5, MonthConstants.FEBRUARY, 2002), 96.195);
    series1.add(new Day(6, MonthConstants.FEBRUARY, 2002), 96.245);
    series1.add(new Day(7, MonthConstants.FEBRUARY, 2002), 96.220);
    series1.add(new Day(8, MonthConstants.FEBRUARY, 2002), 96.280);

    series1.add(new Day(11, MonthConstants.FEBRUARY, 2002), 96.265);
    series1.add(new Day(12, MonthConstants.FEBRUARY, 2002), 96.160);
    series1.add(new Day(13, MonthConstants.FEBRUARY, 2002), 96.120);
    series1.add(new Day(14, MonthConstants.FEBRUARY, 2002), 96.125);
    series1.add(new Day(15, MonthConstants.FEBRUARY, 2002), 96.265);

    series1.add(new Day(19, MonthConstants.FEBRUARY, 2002), 96.290);
    series1.add(new Day(20, MonthConstants.FEBRUARY, 2002), 96.275);
    series1.add(new Day(21, MonthConstants.FEBRUARY, 2002), 96.280);
    series1.add(new Day(22, MonthConstants.FEBRUARY, 2002), 96.305);

    series1.add(new Day(25, MonthConstants.FEBRUARY, 2002), 96.265);
    series1.add(new Day(26, MonthConstants.FEBRUARY, 2002), 96.185);
    series1.add(new Day(27, MonthConstants.FEBRUARY, 2002), 96.305);
    series1.add(new Day(28, MonthConstants.FEBRUARY, 2002), 96.215);
    series1.add(new Day(1, MonthConstants.MARCH, 2002), 96.015);

    series1.add(new Day(4, MonthConstants.MARCH, 2002), 95.970);
    series1.add(new Day(5, MonthConstants.MARCH, 2002), 95.935);
    series1.add(new Day(6, MonthConstants.MARCH, 2002), 95.935);
    series1.add(new Day(7, MonthConstants.MARCH, 2002), 95.705);
    series1.add(new Day(8, MonthConstants.MARCH, 2002), 95.4850);

    series1.add(new Day(11, MonthConstants.MARCH, 2002), 95.505);
    series1.add(new Day(12, MonthConstants.MARCH, 2002), 95.540);
    series1.add(new Day(13, MonthConstants.MARCH, 2002), 95.675);
    series1.add(new Day(14, MonthConstants.MARCH, 2002), 95.510);
    series1.add(new Day(15, MonthConstants.MARCH, 2002), 95.500);

    series1.add(new Day(18, MonthConstants.MARCH, 2002), 95.500);
    series1.add(new Day(19, MonthConstants.MARCH, 2002), 95.535);
    series1.add(new Day(20, MonthConstants.MARCH, 2002), 95.420);
    series1.add(new Day(21, MonthConstants.MARCH, 2002), 95.400);
    series1.add(new Day(22, MonthConstants.MARCH, 2002), 95.375);

    series1.add(new Day(25, MonthConstants.MARCH, 2002), 95.350);
    series1.add(new Day(26, MonthConstants.MARCH, 2002), 95.505);
    series1.add(new Day(27, MonthConstants.MARCH, 2002), 95.550);
    series1.add(new Day(28, MonthConstants.MARCH, 2002), 95.485);

    series1.add(new Day(1, MonthConstants.APRIL, 2002), 95.485);
    series1.add(new Day(2, MonthConstants.APRIL, 2002), 95.630);
    series1.add(new Day(3, MonthConstants.APRIL, 2002), 95.735);
    series1.add(new Day(4, MonthConstants.APRIL, 2002), 95.695);
    series1.add(new Day(5, MonthConstants.APRIL, 2002), 95.810);

    series1.add(new Day(8, MonthConstants.APRIL, 2002), 95.810);
    series1.add(new Day(9, MonthConstants.APRIL, 2002), 95.865);
    series1.add(new Day(10, MonthConstants.APRIL, 2002), 95.885);
    series1.add(new Day(11, MonthConstants.APRIL, 2002), 95.900);
    series1.add(new Day(12, MonthConstants.APRIL, 2002), 95.980);

    series1.add(new Day(15, MonthConstants.APRIL, 2002), 96.035);
    series1.add(new Day(16, MonthConstants.APRIL, 2002), 96.000);
    series1.add(new Day(17, MonthConstants.APRIL, 2002), 96.035);
    series1.add(new Day(18, MonthConstants.APRIL, 2002), 96.085);
    series1.add(new Day(19, MonthConstants.APRIL, 2002), 96.0750);

    series1.add(new Day(22, MonthConstants.APRIL, 2002), 96.105);
    series1.add(new Day(23, MonthConstants.APRIL, 2002), 96.075);
    series1.add(new Day(24, MonthConstants.APRIL, 2002), 96.210);
    series1.add(new Day(25, MonthConstants.APRIL, 2002), 96.255);
    series1.add(new Day(26, MonthConstants.APRIL, 2002), 96.310);

    series1.add(new Day(29, MonthConstants.APRIL, 2002), 96.310);
    series1.add(new Day(30, MonthConstants.APRIL, 2002), 96.325);
    series1.add(new Day(1, MonthConstants.MAY, 2002), 96.345);
    series1.add(new Day(2, MonthConstants.MAY, 2002), 96.285);
    series1.add(new Day(3, MonthConstants.MAY, 2002), 96.385);

    series1.add(new Day(6, MonthConstants.MAY, 2002), 96.380);
    series1.add(new Day(7, MonthConstants.MAY, 2002), 96.485);
    series1.add(new Day(8, MonthConstants.MAY, 2002), 96.230);
    series1.add(new Day(9, MonthConstants.MAY, 2002), 96.310);
    series1.add(new Day(10, MonthConstants.MAY, 2002), 96.445);

    series1.add(new Day(13, MonthConstants.MAY, 2002), 96.355);
    series1.add(new Day(14, MonthConstants.MAY, 2002), 96.180);
    series1.add(new Day(15, MonthConstants.MAY, 2002), 96.240);
    series1.add(new Day(16, MonthConstants.MAY, 2002), 96.325);
    series1.add(new Day(17, MonthConstants.MAY, 2002), 96.200);

    series1.add(new Day(20, MonthConstants.MAY, 2002), 96.305);
    series1.add(new Day(21, MonthConstants.MAY, 2002), 96.385);
    series1.add(new Day(22, MonthConstants.MAY, 2002), 96.445);
    series1.add(new Day(23, MonthConstants.MAY, 2002), 96.385);
    series1.add(new Day(24, MonthConstants.MAY, 2002), 96.390);

    series1.add(new Day(28, MonthConstants.MAY, 2002), 96.390);
    series1.add(new Day(29, MonthConstants.MAY, 2002), 96.475);
    series1.add(new Day(30, MonthConstants.MAY, 2002), 96.555);
    series1.add(new Day(31, MonthConstants.MAY, 2002), 96.500);

    series1.add(new Day(3, MonthConstants.JUNE, 2002), 96.540);
    series1.add(new Day(4, MonthConstants.JUNE, 2002), 96.605);
    series1.add(new Day(5, MonthConstants.JUNE, 2002), 96.580);
    series1.add(new Day(6, MonthConstants.JUNE, 2002), 96.610);
    series1.add(new Day(7, MonthConstants.JUNE, 2002), 96.600);

    series1.add(new Day(10, MonthConstants.JUNE, 2002), 96.615);
    series1.add(new Day(11, MonthConstants.JUNE, 2002), 96.705);
    series1.add(new Day(12, MonthConstants.JUNE, 2002), 96.750);
    series1.add(new Day(13, MonthConstants.JUNE, 2002), 96.830);
    series1.add(new Day(14, MonthConstants.JUNE, 2002), 96.965);

    series1.add(new Day(17, MonthConstants.JUNE, 2002), 96.945);
    series1.add(new Day(18, MonthConstants.JUNE, 2002), 96.990);
    series1.add(new Day(19, MonthConstants.JUNE, 2002), 97.165);
    series1.add(new Day(20, MonthConstants.JUNE, 2002), 97.030);
    series1.add(new Day(21, MonthConstants.JUNE, 2002), 97.145);

    series1.add(new Day(24, MonthConstants.JUNE, 2002), 97.120);
    series1.add(new Day(25, MonthConstants.JUNE, 2002), 97.175);
    series1.add(new Day(26, MonthConstants.JUNE, 2002), 97.365);
    series1.add(new Day(27, MonthConstants.JUNE, 2002), 97.245);
    series1.add(new Day(28, MonthConstants.JUNE, 2002), 97.245);

    series1.add(new Day(1, MonthConstants.JULY, 2002), 97.290);
    series1.add(new Day(2, MonthConstants.JULY, 2002), 97.380);
    series1.add(new Day(3, MonthConstants.JULY, 2002), 97.380);

    series1.add(new Day(5, MonthConstants.JULY, 2002), 97.220);

    series1.add(new Day(8, MonthConstants.JULY, 2002), 97.325);
    series1.add(new Day(9, MonthConstants.JULY, 2002), 97.455);
    series1.add(new Day(10, MonthConstants.JULY, 2002), 97.580);
    series1.add(new Day(11, MonthConstants.JULY, 2002), 97.605);
    series1.add(new Day(12, MonthConstants.JULY, 2002), 97.690);

    series1.add(new Day(15, MonthConstants.JULY, 2002), 97.730);
    series1.add(new Day(16, MonthConstants.JULY, 2002), 97.580);
    series1.add(new Day(17, MonthConstants.JULY, 2002), 97.640);
    series1.add(new Day(18, MonthConstants.JULY, 2002), 97.680);
    series1.add(new Day(19, MonthConstants.JULY, 2002), 97.715);

    series1.add(new Day(22, MonthConstants.JULY, 2002), 97.815);
    series1.add(new Day(23, MonthConstants.JULY, 2002), 97.875);
    series1.add(new Day(24, MonthConstants.JULY, 2002), 97.835);
    series1.add(new Day(25, MonthConstants.JULY, 2002), 97.925);
    series1.add(new Day(26, MonthConstants.JULY, 2002), 97.960);

    series1.add(new Day(29, MonthConstants.JULY, 2002), 97.745);
    series1.add(new Day(30, MonthConstants.JULY, 2002), 97.710);
    series1.add(new Day(31, MonthConstants.JULY, 2002), 97.930);
    series1.add(new Day(1, MonthConstants.AUGUST, 2002), 98.000);
    series1.add(new Day(2, MonthConstants.AUGUST, 2002), 98.170);

    series1.add(new Day(5, MonthConstants.AUGUST, 2002), 98.225);
    series1.add(new Day(6, MonthConstants.AUGUST, 2002), 98.115);
    series1.add(new Day(7, MonthConstants.AUGUST, 2002), 98.265);
    series1.add(new Day(8, MonthConstants.AUGUST, 2002), 98.180);
    series1.add(new Day(9, MonthConstants.AUGUST, 2002), 98.185);

    series1.add(new Day(12, MonthConstants.AUGUST, 2002), 98.150);
    series1.add(new Day(13, MonthConstants.AUGUST, 2002), 98.290);
    series1.add(new Day(14, MonthConstants.AUGUST, 2002), 98.155);
    series1.add(new Day(15, MonthConstants.AUGUST, 2002), 98.075);
    series1.add(new Day(16, MonthConstants.AUGUST, 2002), 98.000);

    series1.add(new Day(19, MonthConstants.AUGUST, 2002), 98.040);
    series1.add(new Day(20, MonthConstants.AUGUST, 2002), 98.135);
    series1.add(new Day(21, MonthConstants.AUGUST, 2002), 98.110);
    series1.add(new Day(22, MonthConstants.AUGUST, 2002), 98.005);
    series1.add(new Day(23, MonthConstants.AUGUST, 2002), 98.055);

    series1.add(new Day(26, MonthConstants.AUGUST, 2002), 98.065);
    series1.add(new Day(27, MonthConstants.AUGUST, 2002), 97.980);
    series1.add(new Day(28, MonthConstants.AUGUST, 2002), 98.035);
    series1.add(new Day(29, MonthConstants.AUGUST, 2002), 98.095);
    series1.add(new Day(30, MonthConstants.AUGUST, 2002), 98.060);

    series1.add(new Day(3, MonthConstants.SEPTEMBER, 2002), 98.250);
    series1.add(new Day(4, MonthConstants.SEPTEMBER, 2002), 98.245);
    series1.add(new Day(5, MonthConstants.SEPTEMBER, 2002), 98.315);
    series1.add(new Day(6, MonthConstants.SEPTEMBER, 2002), 98.170);

    series1.add(new Day(9, MonthConstants.SEPTEMBER, 2002), 98.080);
    series1.add(new Day(10, MonthConstants.SEPTEMBER, 2002), 98.090);
    series1.add(new Day(11, MonthConstants.SEPTEMBER, 2002), 98.030);
    series1.add(new Day(12, MonthConstants.SEPTEMBER, 2002), 98.105);
    series1.add(new Day(13, MonthConstants.SEPTEMBER, 2002), 98.135);

    series1.add(new Day(16, MonthConstants.SEPTEMBER, 2002), 98.115);
    series1.add(new Day(17, MonthConstants.SEPTEMBER, 2002), 98.125);
    series1.add(new Day(18, MonthConstants.SEPTEMBER, 2002), 98.130);
    series1.add(new Day(19, MonthConstants.SEPTEMBER, 2002), 98.255);
    series1.add(new Day(20, MonthConstants.SEPTEMBER, 2002), 98.255);

    series1.add(new Day(23, MonthConstants.SEPTEMBER, 2002), 98.280);
    series1.add(new Day(24, MonthConstants.SEPTEMBER, 2002), 98.310);
    series1.add(new Day(25, MonthConstants.SEPTEMBER, 2002), 98.250);
    series1.add(new Day(26, MonthConstants.SEPTEMBER, 2002), 98.300);
    series1.add(new Day(27, MonthConstants.SEPTEMBER, 2002), 98.410);

    series1.add(new Day(30, MonthConstants.SEPTEMBER, 2002), 98.495);
    series1.add(new Day(1, MonthConstants.OCTOBER, 2002), 98.440);
    series1.add(new Day(2, MonthConstants.OCTOBER, 2002), 98.440);
    series1.add(new Day(3, MonthConstants.OCTOBER, 2002), 98.440);
    series1.add(new Day(4, MonthConstants.OCTOBER, 2002), 98.380);

    series1.add(new Day(7, MonthConstants.OCTOBER, 2002), 98.385);
    series1.add(new Day(8, MonthConstants.OCTOBER, 2002), 98.340);
    series1.add(new Day(9, MonthConstants.OCTOBER, 2002), 98.420);
    series1.add(new Day(10, MonthConstants.OCTOBER, 2002), 98.375);
    series1.add(new Day(11, MonthConstants.OCTOBER, 2002), 98.275);

    series1.add(new Day(14, MonthConstants.OCTOBER, 2002), 98.275);
    series1.add(new Day(15, MonthConstants.OCTOBER, 2002), 98.135);
    series1.add(new Day(16, MonthConstants.OCTOBER, 2002), 98.165);
    series1.add(new Day(17, MonthConstants.OCTOBER, 2002), 98.170);
    series1.add(new Day(18, MonthConstants.OCTOBER, 2002), 98.165);

    series1.add(new Day(21, MonthConstants.OCTOBER, 2002), 98.105);
    series1.add(new Day(22, MonthConstants.OCTOBER, 2002), 98.125);
    series1.add(new Day(23, MonthConstants.OCTOBER, 2002), 98.185);
    series1.add(new Day(24, MonthConstants.OCTOBER, 2002), 98.245);
    series1.add(new Day(25, MonthConstants.OCTOBER, 2002), 98.320);

    series1.add(new Day(28, MonthConstants.OCTOBER, 2002), 98.420);
    series1.add(new Day(29, MonthConstants.OCTOBER, 2002), 98.540);
    series1.add(new Day(30, MonthConstants.OCTOBER, 2002), 98.545);
    series1.add(new Day(31, MonthConstants.OCTOBER, 2002), 98.560);

    return new TimeSeriesCollection(series1);

}

From source file:org.jfree.data.time.TimeSeriesTest.java

/**
 * Some tests to ensure that the createCopy(int, int) method is
 * functioning correctly.//from  w  ww  .  j a va2 s. c  o  m
 */
@Test
public void testCreateCopy2() {
    TimeSeries series = new TimeSeries("Series", Month.class);
    series.add(new Month(MonthConstants.JANUARY, 2003), 45.0);
    series.add(new Month(MonthConstants.FEBRUARY, 2003), 55.0);
    series.add(new Month(MonthConstants.JUNE, 2003), 35.0);
    series.add(new Month(MonthConstants.NOVEMBER, 2003), 85.0);
    series.add(new Month(MonthConstants.DECEMBER, 2003), 75.0);

    try {
        // copy just the first item...
        TimeSeries result1 = series.createCopy(0, 0);
        assertEquals(new Month(1, 2003), result1.getTimePeriod(0));

        // copy the first two items...
        result1 = series.createCopy(0, 1);
        assertEquals(new Month(2, 2003), result1.getTimePeriod(1));

        // copy the middle three items...
        result1 = series.createCopy(1, 3);
        assertEquals(new Month(2, 2003), result1.getTimePeriod(0));
        assertEquals(new Month(11, 2003), result1.getTimePeriod(2));

        // copy the last two items...
        result1 = series.createCopy(3, 4);
        assertEquals(new Month(11, 2003), result1.getTimePeriod(0));
        assertEquals(new Month(12, 2003), result1.getTimePeriod(1));

        // copy the last item...
        result1 = series.createCopy(4, 4);
        assertEquals(new Month(12, 2003), result1.getTimePeriod(0));
    } catch (CloneNotSupportedException e) {
        assertTrue(false);
    }

    // check negative first argument
    boolean pass = false;
    try {
        /* TimeSeries result = */ series.createCopy(-1, 1);
    } catch (IllegalArgumentException e) {
        pass = true;
    } catch (CloneNotSupportedException e) {
        pass = false;
    }
    assertTrue(pass);

    // check second argument less than first argument
    pass = false;
    try {
        /* TimeSeries result = */ series.createCopy(1, 0);
    } catch (IllegalArgumentException e) {
        pass = true;
    } catch (CloneNotSupportedException e) {
        pass = false;
    }
    assertTrue(pass);

    TimeSeries series2 = new TimeSeries("Series 2");
    try {
        TimeSeries series3 = series2.createCopy(99, 999);
        assertEquals(0, series3.getItemCount());
    } catch (CloneNotSupportedException e) {
        assertTrue(false);
    }
}

From source file:com.jonas.testing.jfreechart.demos.DemoDatasetFactory.java

/**
 * Returns a time series of the daily USD/GBP exchange rates in 2001 (to date), for use in
 * the JFreeChart demonstration application.
 * <P>/*from w w  w.  j a  v a2  s.com*/
 * You wouldn't normally create a time series in this way.  Typically, values would
 * be read from a database.
 *
 * @return a time series.
 *
 */
public static TimeSeries createUSDTimeSeries() {

    final TimeSeries t1 = new TimeSeries("USD/GBP");
    try {
        t1.add(new Day(2, MonthConstants.JANUARY, 2001), 1.4956);
        t1.add(new Day(3, MonthConstants.JANUARY, 2001), new Double(1.5047));
        t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.4931));
        t1.add(new Day(5, MonthConstants.JANUARY, 2001), new Double(1.4955));
        t1.add(new Day(8, MonthConstants.JANUARY, 2001), new Double(1.4994));
        t1.add(new Day(9, MonthConstants.JANUARY, 2001), new Double(1.4911));
        t1.add(new Day(10, MonthConstants.JANUARY, 2001), new Double(1.4903));
        t1.add(new Day(11, MonthConstants.JANUARY, 2001), new Double(1.4947));
        t1.add(new Day(12, MonthConstants.JANUARY, 2001), new Double(1.4784));
        t1.add(new Day(15, MonthConstants.JANUARY, 2001), new Double(1.4787));
        t1.add(new Day(16, MonthConstants.JANUARY, 2001), new Double(1.4702));
        t1.add(new Day(17, MonthConstants.JANUARY, 2001), new Double(1.4729));
        t1.add(new Day(18, MonthConstants.JANUARY, 2001), new Double(1.4760));
        t1.add(new Day(19, MonthConstants.JANUARY, 2001), new Double(1.4685));
        t1.add(new Day(22, MonthConstants.JANUARY, 2001), new Double(1.4609));
        t1.add(new Day(23, MonthConstants.JANUARY, 2001), new Double(1.4709));
        t1.add(new Day(24, MonthConstants.JANUARY, 2001), new Double(1.4576));
        t1.add(new Day(25, MonthConstants.JANUARY, 2001), new Double(1.4589));
        t1.add(new Day(26, MonthConstants.JANUARY, 2001), new Double(1.4568));
        t1.add(new Day(29, MonthConstants.JANUARY, 2001), new Double(1.4566));
        t1.add(new Day(30, MonthConstants.JANUARY, 2001), new Double(1.4604));
        t1.add(new Day(31, MonthConstants.JANUARY, 2001), new Double(1.4616));
        t1.add(new Day(1, MonthConstants.FEBRUARY, 2001), new Double(1.4777));
        t1.add(new Day(2, MonthConstants.FEBRUARY, 2001), new Double(1.4687));
        t1.add(new Day(5, MonthConstants.FEBRUARY, 2001), new Double(1.4753));
        t1.add(new Day(6, MonthConstants.FEBRUARY, 2001), new Double(1.4605));
        t1.add(new Day(7, MonthConstants.FEBRUARY, 2001), new Double(1.4619));
        t1.add(new Day(8, MonthConstants.FEBRUARY, 2001), new Double(1.4453));
        t1.add(new Day(9, MonthConstants.FEBRUARY, 2001), new Double(1.4463));
        t1.add(new Day(12, MonthConstants.FEBRUARY, 2001), new Double(1.4521));
        t1.add(new Day(13, MonthConstants.FEBRUARY, 2001), new Double(1.4517));
        t1.add(new Day(14, MonthConstants.FEBRUARY, 2001), new Double(1.4601));
        t1.add(new Day(15, MonthConstants.FEBRUARY, 2001), new Double(1.4500));
        t1.add(new Day(16, MonthConstants.FEBRUARY, 2001), new Double(1.4517));
        t1.add(new Day(19, MonthConstants.FEBRUARY, 2001), new Double(1.4459));
        t1.add(new Day(20, MonthConstants.FEBRUARY, 2001), new Double(1.4449));
        t1.add(new Day(21, MonthConstants.FEBRUARY, 2001), new Double(1.4447));
        t1.add(new Day(22, MonthConstants.FEBRUARY, 2001), new Double(1.4465));
        t1.add(new Day(23, MonthConstants.FEBRUARY, 2001), new Double(1.4487));
        t1.add(new Day(26, MonthConstants.FEBRUARY, 2001), new Double(1.4417));
        t1.add(new Day(27, MonthConstants.FEBRUARY, 2001), new Double(1.4420));
        t1.add(new Day(28, MonthConstants.FEBRUARY, 2001), new Double(1.4421));
        t1.add(new Day(1, MonthConstants.MARCH, 2001), new Double(1.4547));
        t1.add(new Day(2, MonthConstants.MARCH, 2001), new Double(1.4741));
        t1.add(new Day(5, MonthConstants.MARCH, 2001), new Double(1.4686));
        t1.add(new Day(6, MonthConstants.MARCH, 2001), new Double(1.4667));
        t1.add(new Day(7, MonthConstants.MARCH, 2001), new Double(1.4618));
        t1.add(new Day(8, MonthConstants.MARCH, 2001), new Double(1.4685));
        t1.add(new Day(9, MonthConstants.MARCH, 2001), new Double(1.4677));
        t1.add(new Day(12, MonthConstants.MARCH, 2001), new Double(1.4660));
        t1.add(new Day(13, MonthConstants.MARCH, 2001), new Double(1.4526));
        t1.add(new Day(14, MonthConstants.MARCH, 2001), new Double(1.4483));
        t1.add(new Day(15, MonthConstants.MARCH, 2001), new Double(1.4441));
        t1.add(new Day(16, MonthConstants.MARCH, 2001), new Double(1.4303));
        t1.add(new Day(19, MonthConstants.MARCH, 2001), new Double(1.4259));
        t1.add(new Day(20, MonthConstants.MARCH, 2001), new Double(1.4283));
        t1.add(new Day(21, MonthConstants.MARCH, 2001), new Double(1.4293));
        t1.add(new Day(22, MonthConstants.MARCH, 2001), new Double(1.4192));
        t1.add(new Day(23, MonthConstants.MARCH, 2001), new Double(1.4293));
        t1.add(new Day(26, MonthConstants.MARCH, 2001), new Double(1.4334));
        t1.add(new Day(27, MonthConstants.MARCH, 2001), new Double(1.4371));
        t1.add(new Day(28, MonthConstants.MARCH, 2001), new Double(1.4347));
        t1.add(new Day(29, MonthConstants.MARCH, 2001), new Double(1.4362));
        t1.add(new Day(30, MonthConstants.MARCH, 2001), new Double(1.4217));
        t1.add(new Day(2, MonthConstants.APRIL, 2001), new Double(1.4205));
        t1.add(new Day(3, MonthConstants.APRIL, 2001), new Double(1.4270));
        t1.add(new Day(4, MonthConstants.APRIL, 2001), new Double(1.4333));
        t1.add(new Day(5, MonthConstants.APRIL, 2001), new Double(1.4287));
        t1.add(new Day(6, MonthConstants.APRIL, 2001), new Double(1.4395));
        t1.add(new Day(9, MonthConstants.APRIL, 2001), new Double(1.4494));
        t1.add(new Day(10, MonthConstants.APRIL, 2001), new Double(1.4385));
        t1.add(new Day(11, MonthConstants.APRIL, 2001), new Double(1.4348));
        t1.add(new Day(12, MonthConstants.APRIL, 2001), new Double(1.4402));
        t1.add(new Day(17, MonthConstants.APRIL, 2001), new Double(1.4314));
        t1.add(new Day(18, MonthConstants.APRIL, 2001), new Double(1.4197));
        t1.add(new Day(19, MonthConstants.APRIL, 2001), new Double(1.4365));
        t1.add(new Day(20, MonthConstants.APRIL, 2001), new Double(1.4416));
        t1.add(new Day(23, MonthConstants.APRIL, 2001), new Double(1.4396));
        t1.add(new Day(24, MonthConstants.APRIL, 2001), new Double(1.4360));
        t1.add(new Day(25, MonthConstants.APRIL, 2001), new Double(1.4397));
        t1.add(new Day(26, MonthConstants.APRIL, 2001), new Double(1.4402));
        t1.add(new Day(27, MonthConstants.APRIL, 2001), new Double(1.4366));
        t1.add(new Day(30, MonthConstants.APRIL, 2001), new Double(1.4309));
        t1.add(new Day(1, MonthConstants.MAY, 2001), new Double(1.4324));
        t1.add(new Day(2, MonthConstants.MAY, 2001), new Double(1.4336));
        t1.add(new Day(3, MonthConstants.MAY, 2001), new Double(1.4329));
        t1.add(new Day(4, MonthConstants.MAY, 2001), new Double(1.4375));
        t1.add(new Day(8, MonthConstants.MAY, 2001), new Double(1.4321));
        t1.add(new Day(9, MonthConstants.MAY, 2001), new Double(1.4219));
        t1.add(new Day(10, MonthConstants.MAY, 2001), new Double(1.4226));
        t1.add(new Day(11, MonthConstants.MAY, 2001), new Double(1.4199));
        t1.add(new Day(14, MonthConstants.MAY, 2001), new Double(1.4183));
        t1.add(new Day(15, MonthConstants.MAY, 2001), new Double(1.4218));
        t1.add(new Day(16, MonthConstants.MAY, 2001), new Double(1.4295));
        t1.add(new Day(17, MonthConstants.MAY, 2001), new Double(1.4296));
        t1.add(new Day(18, MonthConstants.MAY, 2001), new Double(1.4296));
        t1.add(new Day(21, MonthConstants.MAY, 2001), new Double(1.4366));
        t1.add(new Day(22, MonthConstants.MAY, 2001), new Double(1.4283));
        t1.add(new Day(23, MonthConstants.MAY, 2001), new Double(1.4244));
        t1.add(new Day(24, MonthConstants.MAY, 2001), new Double(1.4102));
        t1.add(new Day(25, MonthConstants.MAY, 2001), new Double(1.4205));
        t1.add(new Day(29, MonthConstants.MAY, 2001), new Double(1.4183));
        t1.add(new Day(30, MonthConstants.MAY, 2001), new Double(1.4230));
        t1.add(new Day(31, MonthConstants.MAY, 2001), new Double(1.4201));
        t1.add(new Day(1, MonthConstants.JUNE, 2001), new Double(1.4148));
        t1.add(new Day(4, MonthConstants.JUNE, 2001), new Double(1.4142));
        t1.add(new Day(5, MonthConstants.JUNE, 2001), new Double(1.4095));
        t1.add(new Day(6, MonthConstants.JUNE, 2001), new Double(1.3938));
        t1.add(new Day(7, MonthConstants.JUNE, 2001), new Double(1.3886));
        t1.add(new Day(8, MonthConstants.JUNE, 2001), new Double(1.3798));
        t1.add(new Day(11, MonthConstants.JUNE, 2001), new Double(1.3726));
        t1.add(new Day(12, MonthConstants.JUNE, 2001), new Double(1.3788));
        t1.add(new Day(13, MonthConstants.JUNE, 2001), new Double(1.3878));
        t1.add(new Day(14, MonthConstants.JUNE, 2001), new Double(1.4002));
        t1.add(new Day(15, MonthConstants.JUNE, 2001), new Double(1.4033));
        t1.add(new Day(18, MonthConstants.JUNE, 2001), new Double(1.4038));
        t1.add(new Day(19, MonthConstants.JUNE, 2001), new Double(1.4023));
        t1.add(new Day(20, MonthConstants.JUNE, 2001), new Double(1.3952));
        t1.add(new Day(21, MonthConstants.JUNE, 2001), new Double(1.4142));
        t1.add(new Day(22, MonthConstants.JUNE, 2001), new Double(1.4114));
        t1.add(new Day(25, MonthConstants.JUNE, 2001), new Double(1.4141));
        t1.add(new Day(26, MonthConstants.JUNE, 2001), new Double(1.4157));
        t1.add(new Day(27, MonthConstants.JUNE, 2001), new Double(1.4136));
        t1.add(new Day(28, MonthConstants.JUNE, 2001), new Double(1.4089));
        t1.add(new Day(29, MonthConstants.JUNE, 2001), new Double(1.4066));
        t1.add(new Day(2, MonthConstants.JULY, 2001), new Double(1.4154));
        t1.add(new Day(3, MonthConstants.JULY, 2001), new Double(1.4072));
        t1.add(new Day(4, MonthConstants.JULY, 2001), new Double(1.4064));
        t1.add(new Day(5, MonthConstants.JULY, 2001), new Double(1.3995));
        t1.add(new Day(6, MonthConstants.JULY, 2001), new Double(1.4070));
        t1.add(new Day(9, MonthConstants.JULY, 2001), new Double(1.4094));
        t1.add(new Day(10, MonthConstants.JULY, 2001), new Double(1.4113));
        t1.add(new Day(11, MonthConstants.JULY, 2001), new Double(1.4143));
        t1.add(new Day(12, MonthConstants.JULY, 2001), new Double(1.4061));
        t1.add(new Day(13, MonthConstants.JULY, 2001), new Double(1.4008));
        t1.add(new Day(16, MonthConstants.JULY, 2001), new Double(1.3999));
        t1.add(new Day(17, MonthConstants.JULY, 2001), new Double(1.4003));
        t1.add(new Day(18, MonthConstants.JULY, 2001), new Double(1.4155));
        t1.add(new Day(19, MonthConstants.JULY, 2001), new Double(1.4165));
        t1.add(new Day(20, MonthConstants.JULY, 2001), new Double(1.4282));
        t1.add(new Day(23, MonthConstants.JULY, 2001), new Double(1.4190));
        t1.add(new Day(24, MonthConstants.JULY, 2001), new Double(1.4200));
        t1.add(new Day(25, MonthConstants.JULY, 2001), new Double(1.4276));
        t1.add(new Day(26, MonthConstants.JULY, 2001), new Double(1.4275));
        t1.add(new Day(27, MonthConstants.JULY, 2001), new Double(1.4233));
        t1.add(new Day(30, MonthConstants.JULY, 2001), new Double(1.4246));
        t1.add(new Day(31, MonthConstants.JULY, 2001), new Double(1.4254));
        t1.add(new Day(1, MonthConstants.AUGUST, 2001), new Double(1.4319));
        t1.add(new Day(2, MonthConstants.AUGUST, 2001), new Double(1.4321));
        t1.add(new Day(3, MonthConstants.AUGUST, 2001), new Double(1.4293));
        t1.add(new Day(6, MonthConstants.AUGUST, 2001), new Double(1.4190));
        t1.add(new Day(7, MonthConstants.AUGUST, 2001), new Double(1.4176));
        t1.add(new Day(8, MonthConstants.AUGUST, 2001), new Double(1.4139));
        t1.add(new Day(9, MonthConstants.AUGUST, 2001), new Double(1.4214));
        t1.add(new Day(10, MonthConstants.AUGUST, 2001), new Double(1.4266));
        t1.add(new Day(11, MonthConstants.AUGUST, 2001), new Double(1.4220));
        t1.add(new Day(12, MonthConstants.AUGUST, 2001), new Double(1.4210));
        t1.add(new Day(15, MonthConstants.AUGUST, 2001), new Double(1.4383));
        t1.add(new Day(16, MonthConstants.AUGUST, 2001), new Double(1.4431));
        t1.add(new Day(17, MonthConstants.AUGUST, 2001), new Double(1.4445));
        t1.add(new Day(20, MonthConstants.AUGUST, 2001), new Double(1.4444));
        t1.add(new Day(21, MonthConstants.AUGUST, 2001), new Double(1.4483));
        t1.add(new Day(22, MonthConstants.AUGUST, 2001), new Double(1.4556));
        t1.add(new Day(23, MonthConstants.AUGUST, 2001), new Double(1.4468));
        t1.add(new Day(24, MonthConstants.AUGUST, 2001), new Double(1.4464));
        t1.add(new Day(28, MonthConstants.AUGUST, 2001), new Double(1.4483));
        t1.add(new Day(29, MonthConstants.AUGUST, 2001), new Double(1.4519));
        t1.add(new Day(30, MonthConstants.AUGUST, 2001), new Double(1.4494));
        t1.add(new Day(31, MonthConstants.AUGUST, 2001), new Double(1.4505));
        t1.add(new Day(3, MonthConstants.SEPTEMBER, 2001), new Double(1.4519));
        t1.add(new Day(4, MonthConstants.SEPTEMBER, 2001), new Double(1.4460));
        t1.add(new Day(5, MonthConstants.SEPTEMBER, 2001), new Double(1.4526));
        t1.add(new Day(6, MonthConstants.SEPTEMBER, 2001), new Double(1.4527));
        t1.add(new Day(7, MonthConstants.SEPTEMBER, 2001), new Double(1.4617));
        t1.add(new Day(10, MonthConstants.SEPTEMBER, 2001), new Double(1.4583));
        t1.add(new Day(11, MonthConstants.SEPTEMBER, 2001), new Double(1.4693));
        t1.add(new Day(12, MonthConstants.SEPTEMBER, 2001), new Double(1.4633));
        t1.add(new Day(13, MonthConstants.SEPTEMBER, 2001), new Double(1.4690));
        t1.add(new Day(14, MonthConstants.SEPTEMBER, 2001), new Double(1.4691));
        t1.add(new Day(17, MonthConstants.SEPTEMBER, 2001), new Double(1.4668));
        t1.add(new Day(18, MonthConstants.SEPTEMBER, 2001), new Double(1.4624));
        t1.add(new Day(19, MonthConstants.SEPTEMBER, 2001), new Double(1.4678));
        t1.add(new Day(20, MonthConstants.SEPTEMBER, 2001), new Double(1.4657));
        t1.add(new Day(21, MonthConstants.SEPTEMBER, 2001), new Double(1.4575));
        t1.add(new Day(24, MonthConstants.SEPTEMBER, 2001), new Double(1.4646));
        t1.add(new Day(25, MonthConstants.SEPTEMBER, 2001), new Double(1.4699));
        t1.add(new Day(26, MonthConstants.SEPTEMBER, 2001), new Double(1.4749));
        t1.add(new Day(27, MonthConstants.SEPTEMBER, 2001), new Double(1.4756));
        t1.add(new Day(28, MonthConstants.SEPTEMBER, 2001), new Double(1.4699));
        t1.add(new Day(1, MonthConstants.OCTOBER, 2001), new Double(1.4784));
        t1.add(new Day(2, MonthConstants.OCTOBER, 2001), new Double(1.4661));
        t1.add(new Day(3, MonthConstants.OCTOBER, 2001), new Double(1.4767));
        t1.add(new Day(4, MonthConstants.OCTOBER, 2001), new Double(1.4770));
        t1.add(new Day(5, MonthConstants.OCTOBER, 2001), new Double(1.4810));
        t1.add(new Day(8, MonthConstants.OCTOBER, 2001), new Double(1.4743));
        t1.add(new Day(9, MonthConstants.OCTOBER, 2001), new Double(1.4667));
        t1.add(new Day(10, MonthConstants.OCTOBER, 2001), new Double(1.4505));
        t1.add(new Day(11, MonthConstants.OCTOBER, 2001), new Double(1.4434));
        t1.add(new Day(12, MonthConstants.OCTOBER, 2001), new Double(1.4504));
        t1.add(new Day(15, MonthConstants.OCTOBER, 2001), new Double(1.4471));
        t1.add(new Day(16, MonthConstants.OCTOBER, 2001), new Double(1.4474));
        t1.add(new Day(17, MonthConstants.OCTOBER, 2001), new Double(1.4512));
        t1.add(new Day(18, MonthConstants.OCTOBER, 2001), new Double(1.4445));
        t1.add(new Day(19, MonthConstants.OCTOBER, 2001), new Double(1.4384));
        t1.add(new Day(22, MonthConstants.OCTOBER, 2001), new Double(1.4275));
        t1.add(new Day(23, MonthConstants.OCTOBER, 2001), new Double(1.4212));
        t1.add(new Day(24, MonthConstants.OCTOBER, 2001), new Double(1.4233));
        t1.add(new Day(25, MonthConstants.OCTOBER, 2001), new Double(1.4297));
        t1.add(new Day(26, MonthConstants.OCTOBER, 2001), new Double(1.4328));
        t1.add(new Day(29, MonthConstants.OCTOBER, 2001), new Double(1.4515));
        t1.add(new Day(30, MonthConstants.OCTOBER, 2001), new Double(1.4564));
        t1.add(new Day(31, MonthConstants.OCTOBER, 2001), new Double(1.4541));
        t1.add(new Day(1, MonthConstants.NOVEMBER, 2001), new Double(1.4624));
        t1.add(new Day(2, MonthConstants.NOVEMBER, 2001), new Double(1.4632));
        t1.add(new Day(5, MonthConstants.NOVEMBER, 2001), new Double(1.4570));
        t1.add(new Day(6, MonthConstants.NOVEMBER, 2001), new Double(1.4588));
        t1.add(new Day(7, MonthConstants.NOVEMBER, 2001), new Double(1.4646));
        t1.add(new Day(8, MonthConstants.NOVEMBER, 2001), new Double(1.4552));
        t1.add(new Day(9, MonthConstants.NOVEMBER, 2001), new Double(1.4579));
        t1.add(new Day(12, MonthConstants.NOVEMBER, 2001), new Double(1.4575));
        t1.add(new Day(13, MonthConstants.NOVEMBER, 2001), new Double(1.4429));
        t1.add(new Day(14, MonthConstants.NOVEMBER, 2001), new Double(1.4425));
        t1.add(new Day(15, MonthConstants.NOVEMBER, 2001), new Double(1.4318));
        t1.add(new Day(16, MonthConstants.NOVEMBER, 2001), new Double(1.4291));
        t1.add(new Day(19, MonthConstants.NOVEMBER, 2001), new Double(1.4140));
        t1.add(new Day(20, MonthConstants.NOVEMBER, 2001), new Double(1.4173));
        t1.add(new Day(21, MonthConstants.NOVEMBER, 2001), new Double(1.4132));
        t1.add(new Day(22, MonthConstants.NOVEMBER, 2001), new Double(1.4131));
        t1.add(new Day(23, MonthConstants.NOVEMBER, 2001), new Double(1.4083));
        t1.add(new Day(26, MonthConstants.NOVEMBER, 2001), new Double(1.4122));
        t1.add(new Day(27, MonthConstants.NOVEMBER, 2001), new Double(1.4136));
        t1.add(new Day(28, MonthConstants.NOVEMBER, 2001), new Double(1.4239));
        t1.add(new Day(29, MonthConstants.NOVEMBER, 2001), new Double(1.4225));
        t1.add(new Day(30, MonthConstants.NOVEMBER, 2001), new Double(1.4260));
    } catch (Exception e) {
        System.err.println(e.getMessage());
    }
    return t1;
}

From source file:gui.DemoDatasetFactory.java

/**
 * Returns a time series of the daily USD/GBP exchange rates in 2001 (to date), for use in
 * the JFreeChart demonstration application.
 * <P>//from  w  w  w  .  j av a2  s .  com
 * You wouldn't normally create a time series in this way.  Typically, values would
 * be read from a database.
 *
 * @return a time series.
 *
 */
public static TimeSeries createUSDTimeSeries() {

    TimeSeries t1 = new TimeSeries("USD/GBP");
    try {
        t1.add(new Day(2, MonthConstants.JANUARY, 2001), 1.4956);
        t1.add(new Day(3, MonthConstants.JANUARY, 2001), new Double(1.5047));
        t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.4931));
        t1.add(new Day(5, MonthConstants.JANUARY, 2001), new Double(1.4955));
        t1.add(new Day(8, MonthConstants.JANUARY, 2001), new Double(1.4994));
        t1.add(new Day(9, MonthConstants.JANUARY, 2001), new Double(1.4911));
        t1.add(new Day(10, MonthConstants.JANUARY, 2001), new Double(1.4903));
        t1.add(new Day(11, MonthConstants.JANUARY, 2001), new Double(1.4947));
        t1.add(new Day(12, MonthConstants.JANUARY, 2001), new Double(1.4784));
        t1.add(new Day(15, MonthConstants.JANUARY, 2001), new Double(1.4787));
        t1.add(new Day(16, MonthConstants.JANUARY, 2001), new Double(1.4702));
        t1.add(new Day(17, MonthConstants.JANUARY, 2001), new Double(1.4729));
        t1.add(new Day(18, MonthConstants.JANUARY, 2001), new Double(1.4760));
        t1.add(new Day(19, MonthConstants.JANUARY, 2001), new Double(1.4685));
        t1.add(new Day(22, MonthConstants.JANUARY, 2001), new Double(1.4609));
        t1.add(new Day(23, MonthConstants.JANUARY, 2001), new Double(1.4709));
        t1.add(new Day(24, MonthConstants.JANUARY, 2001), new Double(1.4576));
        t1.add(new Day(25, MonthConstants.JANUARY, 2001), new Double(1.4589));
        t1.add(new Day(26, MonthConstants.JANUARY, 2001), new Double(1.4568));
        t1.add(new Day(29, MonthConstants.JANUARY, 2001), new Double(1.4566));
        t1.add(new Day(30, MonthConstants.JANUARY, 2001), new Double(1.4604));
        t1.add(new Day(31, MonthConstants.JANUARY, 2001), new Double(1.4616));
        t1.add(new Day(1, MonthConstants.FEBRUARY, 2001), new Double(1.4777));
        t1.add(new Day(2, MonthConstants.FEBRUARY, 2001), new Double(1.4687));
        t1.add(new Day(5, MonthConstants.FEBRUARY, 2001), new Double(1.4753));
        t1.add(new Day(6, MonthConstants.FEBRUARY, 2001), new Double(1.4605));
        t1.add(new Day(7, MonthConstants.FEBRUARY, 2001), new Double(1.4619));
        t1.add(new Day(8, MonthConstants.FEBRUARY, 2001), new Double(1.4453));
        t1.add(new Day(9, MonthConstants.FEBRUARY, 2001), new Double(1.4463));
        t1.add(new Day(12, MonthConstants.FEBRUARY, 2001), new Double(1.4521));
        t1.add(new Day(13, MonthConstants.FEBRUARY, 2001), new Double(1.4517));
        t1.add(new Day(14, MonthConstants.FEBRUARY, 2001), new Double(1.4601));
        t1.add(new Day(15, MonthConstants.FEBRUARY, 2001), new Double(1.4500));
        t1.add(new Day(16, MonthConstants.FEBRUARY, 2001), new Double(1.4517));
        t1.add(new Day(19, MonthConstants.FEBRUARY, 2001), new Double(1.4459));
        t1.add(new Day(20, MonthConstants.FEBRUARY, 2001), new Double(1.4449));
        t1.add(new Day(21, MonthConstants.FEBRUARY, 2001), new Double(1.4447));
        t1.add(new Day(22, MonthConstants.FEBRUARY, 2001), new Double(1.4465));
        t1.add(new Day(23, MonthConstants.FEBRUARY, 2001), new Double(1.4487));
        t1.add(new Day(26, MonthConstants.FEBRUARY, 2001), new Double(1.4417));
        t1.add(new Day(27, MonthConstants.FEBRUARY, 2001), new Double(1.4420));
        t1.add(new Day(28, MonthConstants.FEBRUARY, 2001), new Double(1.4421));
        t1.add(new Day(1, MonthConstants.MARCH, 2001), new Double(1.4547));
        t1.add(new Day(2, MonthConstants.MARCH, 2001), new Double(1.4741));
        t1.add(new Day(5, MonthConstants.MARCH, 2001), new Double(1.4686));
        t1.add(new Day(6, MonthConstants.MARCH, 2001), new Double(1.4667));
        t1.add(new Day(7, MonthConstants.MARCH, 2001), new Double(1.4618));
        t1.add(new Day(8, MonthConstants.MARCH, 2001), new Double(1.4685));
        t1.add(new Day(9, MonthConstants.MARCH, 2001), new Double(1.4677));
        t1.add(new Day(12, MonthConstants.MARCH, 2001), new Double(1.4660));
        t1.add(new Day(13, MonthConstants.MARCH, 2001), new Double(1.4526));
        t1.add(new Day(14, MonthConstants.MARCH, 2001), new Double(1.4483));
        t1.add(new Day(15, MonthConstants.MARCH, 2001), new Double(1.4441));
        t1.add(new Day(16, MonthConstants.MARCH, 2001), new Double(1.4303));
        t1.add(new Day(19, MonthConstants.MARCH, 2001), new Double(1.4259));
        t1.add(new Day(20, MonthConstants.MARCH, 2001), new Double(1.4283));
        t1.add(new Day(21, MonthConstants.MARCH, 2001), new Double(1.4293));
        t1.add(new Day(22, MonthConstants.MARCH, 2001), new Double(1.4192));
        t1.add(new Day(23, MonthConstants.MARCH, 2001), new Double(1.4293));
        t1.add(new Day(26, MonthConstants.MARCH, 2001), new Double(1.4334));
        t1.add(new Day(27, MonthConstants.MARCH, 2001), new Double(1.4371));
        t1.add(new Day(28, MonthConstants.MARCH, 2001), new Double(1.4347));
        t1.add(new Day(29, MonthConstants.MARCH, 2001), new Double(1.4362));
        t1.add(new Day(30, MonthConstants.MARCH, 2001), new Double(1.4217));
        t1.add(new Day(2, MonthConstants.APRIL, 2001), new Double(1.4205));
        t1.add(new Day(3, MonthConstants.APRIL, 2001), new Double(1.4270));
        t1.add(new Day(4, MonthConstants.APRIL, 2001), new Double(1.4333));
        t1.add(new Day(5, MonthConstants.APRIL, 2001), new Double(1.4287));
        t1.add(new Day(6, MonthConstants.APRIL, 2001), new Double(1.4395));
        t1.add(new Day(9, MonthConstants.APRIL, 2001), new Double(1.4494));
        t1.add(new Day(10, MonthConstants.APRIL, 2001), new Double(1.4385));
        t1.add(new Day(11, MonthConstants.APRIL, 2001), new Double(1.4348));
        t1.add(new Day(12, MonthConstants.APRIL, 2001), new Double(1.4402));
        t1.add(new Day(17, MonthConstants.APRIL, 2001), new Double(1.4314));
        t1.add(new Day(18, MonthConstants.APRIL, 2001), new Double(1.4197));
        t1.add(new Day(19, MonthConstants.APRIL, 2001), new Double(1.4365));
        t1.add(new Day(20, MonthConstants.APRIL, 2001), new Double(1.4416));
        t1.add(new Day(23, MonthConstants.APRIL, 2001), new Double(1.4396));
        t1.add(new Day(24, MonthConstants.APRIL, 2001), new Double(1.4360));
        t1.add(new Day(25, MonthConstants.APRIL, 2001), new Double(1.4397));
        t1.add(new Day(26, MonthConstants.APRIL, 2001), new Double(1.4402));
        t1.add(new Day(27, MonthConstants.APRIL, 2001), new Double(1.4366));
        t1.add(new Day(30, MonthConstants.APRIL, 2001), new Double(1.4309));
        t1.add(new Day(1, MonthConstants.MAY, 2001), new Double(1.4324));
        t1.add(new Day(2, MonthConstants.MAY, 2001), new Double(1.4336));
        t1.add(new Day(3, MonthConstants.MAY, 2001), new Double(1.4329));
        t1.add(new Day(4, MonthConstants.MAY, 2001), new Double(1.4375));
        t1.add(new Day(8, MonthConstants.MAY, 2001), new Double(1.4321));
        t1.add(new Day(9, MonthConstants.MAY, 2001), new Double(1.4219));
        t1.add(new Day(10, MonthConstants.MAY, 2001), new Double(1.4226));
        t1.add(new Day(11, MonthConstants.MAY, 2001), new Double(1.4199));
        t1.add(new Day(14, MonthConstants.MAY, 2001), new Double(1.4183));
        t1.add(new Day(15, MonthConstants.MAY, 2001), new Double(1.4218));
        t1.add(new Day(16, MonthConstants.MAY, 2001), new Double(1.4295));
        t1.add(new Day(17, MonthConstants.MAY, 2001), new Double(1.4296));
        t1.add(new Day(18, MonthConstants.MAY, 2001), new Double(1.4296));
        t1.add(new Day(21, MonthConstants.MAY, 2001), new Double(1.4366));
        t1.add(new Day(22, MonthConstants.MAY, 2001), new Double(1.4283));
        t1.add(new Day(23, MonthConstants.MAY, 2001), new Double(1.4244));
        t1.add(new Day(24, MonthConstants.MAY, 2001), new Double(1.4102));
        t1.add(new Day(25, MonthConstants.MAY, 2001), new Double(1.4205));
        t1.add(new Day(29, MonthConstants.MAY, 2001), new Double(1.4183));
        t1.add(new Day(30, MonthConstants.MAY, 2001), new Double(1.4230));
        t1.add(new Day(31, MonthConstants.MAY, 2001), new Double(1.4201));
        t1.add(new Day(1, MonthConstants.JUNE, 2001), new Double(1.4148));
        t1.add(new Day(4, MonthConstants.JUNE, 2001), new Double(1.4142));
        t1.add(new Day(5, MonthConstants.JUNE, 2001), new Double(1.4095));
        t1.add(new Day(6, MonthConstants.JUNE, 2001), new Double(1.3938));
        t1.add(new Day(7, MonthConstants.JUNE, 2001), new Double(1.3886));
        t1.add(new Day(8, MonthConstants.JUNE, 2001), new Double(1.3798));
        t1.add(new Day(11, MonthConstants.JUNE, 2001), new Double(1.3726));
        t1.add(new Day(12, MonthConstants.JUNE, 2001), new Double(1.3788));
        t1.add(new Day(13, MonthConstants.JUNE, 2001), new Double(1.3878));
        t1.add(new Day(14, MonthConstants.JUNE, 2001), new Double(1.4002));
        t1.add(new Day(15, MonthConstants.JUNE, 2001), new Double(1.4033));
        t1.add(new Day(18, MonthConstants.JUNE, 2001), new Double(1.4038));
        t1.add(new Day(19, MonthConstants.JUNE, 2001), new Double(1.4023));
        t1.add(new Day(20, MonthConstants.JUNE, 2001), new Double(1.3952));
        t1.add(new Day(21, MonthConstants.JUNE, 2001), new Double(1.4142));
        t1.add(new Day(22, MonthConstants.JUNE, 2001), new Double(1.4114));
        t1.add(new Day(25, MonthConstants.JUNE, 2001), new Double(1.4141));
        t1.add(new Day(26, MonthConstants.JUNE, 2001), new Double(1.4157));
        t1.add(new Day(27, MonthConstants.JUNE, 2001), new Double(1.4136));
        t1.add(new Day(28, MonthConstants.JUNE, 2001), new Double(1.4089));
        t1.add(new Day(29, MonthConstants.JUNE, 2001), new Double(1.4066));
        t1.add(new Day(2, MonthConstants.JULY, 2001), new Double(1.4154));
        t1.add(new Day(3, MonthConstants.JULY, 2001), new Double(1.4072));
        t1.add(new Day(4, MonthConstants.JULY, 2001), new Double(1.4064));
        t1.add(new Day(5, MonthConstants.JULY, 2001), new Double(1.3995));
        t1.add(new Day(6, MonthConstants.JULY, 2001), new Double(1.4070));
        t1.add(new Day(9, MonthConstants.JULY, 2001), new Double(1.4094));
        t1.add(new Day(10, MonthConstants.JULY, 2001), new Double(1.4113));
        t1.add(new Day(11, MonthConstants.JULY, 2001), new Double(1.4143));
        t1.add(new Day(12, MonthConstants.JULY, 2001), new Double(1.4061));
        t1.add(new Day(13, MonthConstants.JULY, 2001), new Double(1.4008));
        t1.add(new Day(16, MonthConstants.JULY, 2001), new Double(1.3999));
        t1.add(new Day(17, MonthConstants.JULY, 2001), new Double(1.4003));
        t1.add(new Day(18, MonthConstants.JULY, 2001), new Double(1.4155));
        t1.add(new Day(19, MonthConstants.JULY, 2001), new Double(1.4165));
        t1.add(new Day(20, MonthConstants.JULY, 2001), new Double(1.4282));
        t1.add(new Day(23, MonthConstants.JULY, 2001), new Double(1.4190));
        t1.add(new Day(24, MonthConstants.JULY, 2001), new Double(1.4200));
        t1.add(new Day(25, MonthConstants.JULY, 2001), new Double(1.4276));
        t1.add(new Day(26, MonthConstants.JULY, 2001), new Double(1.4275));
        t1.add(new Day(27, MonthConstants.JULY, 2001), new Double(1.4233));
        t1.add(new Day(30, MonthConstants.JULY, 2001), new Double(1.4246));
        t1.add(new Day(31, MonthConstants.JULY, 2001), new Double(1.4254));
        t1.add(new Day(1, MonthConstants.AUGUST, 2001), new Double(1.4319));
        t1.add(new Day(2, MonthConstants.AUGUST, 2001), new Double(1.4321));
        t1.add(new Day(3, MonthConstants.AUGUST, 2001), new Double(1.4293));
        t1.add(new Day(6, MonthConstants.AUGUST, 2001), new Double(1.4190));
        t1.add(new Day(7, MonthConstants.AUGUST, 2001), new Double(1.4176));
        t1.add(new Day(8, MonthConstants.AUGUST, 2001), new Double(1.4139));
        t1.add(new Day(9, MonthConstants.AUGUST, 2001), new Double(1.4214));
        t1.add(new Day(10, MonthConstants.AUGUST, 2001), new Double(1.4266));
        t1.add(new Day(11, MonthConstants.AUGUST, 2001), new Double(1.4220));
        t1.add(new Day(12, MonthConstants.AUGUST, 2001), new Double(1.4210));
        t1.add(new Day(15, MonthConstants.AUGUST, 2001), new Double(1.4383));
        t1.add(new Day(16, MonthConstants.AUGUST, 2001), new Double(1.4431));
        t1.add(new Day(17, MonthConstants.AUGUST, 2001), new Double(1.4445));
        t1.add(new Day(20, MonthConstants.AUGUST, 2001), new Double(1.4444));
        t1.add(new Day(21, MonthConstants.AUGUST, 2001), new Double(1.4483));
        t1.add(new Day(22, MonthConstants.AUGUST, 2001), new Double(1.4556));
        t1.add(new Day(23, MonthConstants.AUGUST, 2001), new Double(1.4468));
        t1.add(new Day(24, MonthConstants.AUGUST, 2001), new Double(1.4464));
        t1.add(new Day(28, MonthConstants.AUGUST, 2001), new Double(1.4483));
        t1.add(new Day(29, MonthConstants.AUGUST, 2001), new Double(1.4519));
        t1.add(new Day(30, MonthConstants.AUGUST, 2001), new Double(1.4494));
        t1.add(new Day(31, MonthConstants.AUGUST, 2001), new Double(1.4505));
        t1.add(new Day(3, MonthConstants.SEPTEMBER, 2001), new Double(1.4519));
        t1.add(new Day(4, MonthConstants.SEPTEMBER, 2001), new Double(1.4460));
        t1.add(new Day(5, MonthConstants.SEPTEMBER, 2001), new Double(1.4526));
        t1.add(new Day(6, MonthConstants.SEPTEMBER, 2001), new Double(1.4527));
        t1.add(new Day(7, MonthConstants.SEPTEMBER, 2001), new Double(1.4617));
        t1.add(new Day(10, MonthConstants.SEPTEMBER, 2001), new Double(1.4583));
        t1.add(new Day(11, MonthConstants.SEPTEMBER, 2001), new Double(1.4693));
        t1.add(new Day(12, MonthConstants.SEPTEMBER, 2001), new Double(1.4633));
        t1.add(new Day(13, MonthConstants.SEPTEMBER, 2001), new Double(1.4690));
        t1.add(new Day(14, MonthConstants.SEPTEMBER, 2001), new Double(1.4691));
        t1.add(new Day(17, MonthConstants.SEPTEMBER, 2001), new Double(1.4668));
        t1.add(new Day(18, MonthConstants.SEPTEMBER, 2001), new Double(1.4624));
        t1.add(new Day(19, MonthConstants.SEPTEMBER, 2001), new Double(1.4678));
        t1.add(new Day(20, MonthConstants.SEPTEMBER, 2001), new Double(1.4657));
        t1.add(new Day(21, MonthConstants.SEPTEMBER, 2001), new Double(1.4575));
        t1.add(new Day(24, MonthConstants.SEPTEMBER, 2001), new Double(1.4646));
        t1.add(new Day(25, MonthConstants.SEPTEMBER, 2001), new Double(1.4699));
        t1.add(new Day(26, MonthConstants.SEPTEMBER, 2001), new Double(1.4749));
        t1.add(new Day(27, MonthConstants.SEPTEMBER, 2001), new Double(1.4756));
        t1.add(new Day(28, MonthConstants.SEPTEMBER, 2001), new Double(1.4699));
        t1.add(new Day(1, MonthConstants.OCTOBER, 2001), new Double(1.4784));
        t1.add(new Day(2, MonthConstants.OCTOBER, 2001), new Double(1.4661));
        t1.add(new Day(3, MonthConstants.OCTOBER, 2001), new Double(1.4767));
        t1.add(new Day(4, MonthConstants.OCTOBER, 2001), new Double(1.4770));
        t1.add(new Day(5, MonthConstants.OCTOBER, 2001), new Double(1.4810));
        t1.add(new Day(8, MonthConstants.OCTOBER, 2001), new Double(1.4743));
        t1.add(new Day(9, MonthConstants.OCTOBER, 2001), new Double(1.4667));
        t1.add(new Day(10, MonthConstants.OCTOBER, 2001), new Double(1.4505));
        t1.add(new Day(11, MonthConstants.OCTOBER, 2001), new Double(1.4434));
        t1.add(new Day(12, MonthConstants.OCTOBER, 2001), new Double(1.4504));
        t1.add(new Day(15, MonthConstants.OCTOBER, 2001), new Double(1.4471));
        t1.add(new Day(16, MonthConstants.OCTOBER, 2001), new Double(1.4474));
        t1.add(new Day(17, MonthConstants.OCTOBER, 2001), new Double(1.4512));
        t1.add(new Day(18, MonthConstants.OCTOBER, 2001), new Double(1.4445));
        t1.add(new Day(19, MonthConstants.OCTOBER, 2001), new Double(1.4384));
        t1.add(new Day(22, MonthConstants.OCTOBER, 2001), new Double(1.4275));
        t1.add(new Day(23, MonthConstants.OCTOBER, 2001), new Double(1.4212));
        t1.add(new Day(24, MonthConstants.OCTOBER, 2001), new Double(1.4233));
        t1.add(new Day(25, MonthConstants.OCTOBER, 2001), new Double(1.4297));
        t1.add(new Day(26, MonthConstants.OCTOBER, 2001), new Double(1.4328));
        t1.add(new Day(29, MonthConstants.OCTOBER, 2001), new Double(1.4515));
        t1.add(new Day(30, MonthConstants.OCTOBER, 2001), new Double(1.4564));
        t1.add(new Day(31, MonthConstants.OCTOBER, 2001), new Double(1.4541));
        t1.add(new Day(1, MonthConstants.NOVEMBER, 2001), new Double(1.4624));
        t1.add(new Day(2, MonthConstants.NOVEMBER, 2001), new Double(1.4632));
        t1.add(new Day(5, MonthConstants.NOVEMBER, 2001), new Double(1.4570));
        t1.add(new Day(6, MonthConstants.NOVEMBER, 2001), new Double(1.4588));
        t1.add(new Day(7, MonthConstants.NOVEMBER, 2001), new Double(1.4646));
        t1.add(new Day(8, MonthConstants.NOVEMBER, 2001), new Double(1.4552));
        t1.add(new Day(9, MonthConstants.NOVEMBER, 2001), new Double(1.4579));
        t1.add(new Day(12, MonthConstants.NOVEMBER, 2001), new Double(1.4575));
        t1.add(new Day(13, MonthConstants.NOVEMBER, 2001), new Double(1.4429));
        t1.add(new Day(14, MonthConstants.NOVEMBER, 2001), new Double(1.4425));
        t1.add(new Day(15, MonthConstants.NOVEMBER, 2001), new Double(1.4318));
        t1.add(new Day(16, MonthConstants.NOVEMBER, 2001), new Double(1.4291));
        t1.add(new Day(19, MonthConstants.NOVEMBER, 2001), new Double(1.4140));
        t1.add(new Day(20, MonthConstants.NOVEMBER, 2001), new Double(1.4173));
        t1.add(new Day(21, MonthConstants.NOVEMBER, 2001), new Double(1.4132));
        t1.add(new Day(22, MonthConstants.NOVEMBER, 2001), new Double(1.4131));
        t1.add(new Day(23, MonthConstants.NOVEMBER, 2001), new Double(1.4083));
        t1.add(new Day(26, MonthConstants.NOVEMBER, 2001), new Double(1.4122));
        t1.add(new Day(27, MonthConstants.NOVEMBER, 2001), new Double(1.4136));
        t1.add(new Day(28, MonthConstants.NOVEMBER, 2001), new Double(1.4239));
        t1.add(new Day(29, MonthConstants.NOVEMBER, 2001), new Double(1.4225));
        t1.add(new Day(30, MonthConstants.NOVEMBER, 2001), new Double(1.4260));
    } catch (Exception e) {
        System.err.println(e.getMessage());
    }
    return t1;
}

From source file:org.jfree.chart.demo.PriceVolumeDemo.java

/**
 * Creates a sample dataset./*from   w  w w.  j a  v a 2  s.c o m*/
 *
 * @return A sample dataset.
 */
private IntervalXYDataset createVolumeDataset() {

    // create dataset 2...
    final TimeSeries series1 = new TimeSeries("Volume", Day.class);

    series1.add(new Day(2, MonthConstants.JANUARY, 2002), 41020);
    series1.add(new Day(3, MonthConstants.JANUARY, 2002), 45586);
    series1.add(new Day(4, MonthConstants.JANUARY, 2002), 81672);

    series1.add(new Day(7, MonthConstants.JANUARY, 2002), 81975);
    series1.add(new Day(8, MonthConstants.JANUARY, 2002), 79692);
    series1.add(new Day(9, MonthConstants.JANUARY, 2002), 53187);
    series1.add(new Day(10, MonthConstants.JANUARY, 2002), 87929);
    series1.add(new Day(11, MonthConstants.JANUARY, 2002), 107047);

    series1.add(new Day(14, MonthConstants.JANUARY, 2002), 86276);
    series1.add(new Day(15, MonthConstants.JANUARY, 2002), 79005);
    series1.add(new Day(16, MonthConstants.JANUARY, 2002), 80632);
    series1.add(new Day(17, MonthConstants.JANUARY, 2002), 88797);
    series1.add(new Day(18, MonthConstants.JANUARY, 2002), 57179);

    series1.add(new Day(22, MonthConstants.JANUARY, 2002), 36611);
    series1.add(new Day(23, MonthConstants.JANUARY, 2002), 57063);
    series1.add(new Day(24, MonthConstants.JANUARY, 2002), 101938);
    series1.add(new Day(25, MonthConstants.JANUARY, 2002), 87177);

    series1.add(new Day(28, MonthConstants.JANUARY, 2002), 39831);
    series1.add(new Day(29, MonthConstants.JANUARY, 2002), 67654);
    series1.add(new Day(30, MonthConstants.JANUARY, 2002), 81162);
    series1.add(new Day(31, MonthConstants.JANUARY, 2002), 64923);
    series1.add(new Day(1, MonthConstants.FEBRUARY, 2002), 73481);

    series1.add(new Day(4, MonthConstants.FEBRUARY, 2002), 54723);
    series1.add(new Day(5, MonthConstants.FEBRUARY, 2002), 76708);
    series1.add(new Day(6, MonthConstants.FEBRUARY, 2002), 81281);
    series1.add(new Day(7, MonthConstants.FEBRUARY, 2002), 66553);
    series1.add(new Day(8, MonthConstants.FEBRUARY, 2002), 53592);

    series1.add(new Day(11, MonthConstants.FEBRUARY, 2002), 29410);
    series1.add(new Day(12, MonthConstants.FEBRUARY, 2002), 60345);
    series1.add(new Day(13, MonthConstants.FEBRUARY, 2002), 67339);
    series1.add(new Day(14, MonthConstants.FEBRUARY, 2002), 40057);
    series1.add(new Day(15, MonthConstants.FEBRUARY, 2002), 67865);

    series1.add(new Day(19, MonthConstants.FEBRUARY, 2002), 58628);
    series1.add(new Day(20, MonthConstants.FEBRUARY, 2002), 52109);
    series1.add(new Day(21, MonthConstants.FEBRUARY, 2002), 50195);
    series1.add(new Day(22, MonthConstants.FEBRUARY, 2002), 47806);

    series1.add(new Day(25, MonthConstants.FEBRUARY, 2002), 31711);
    series1.add(new Day(26, MonthConstants.FEBRUARY, 2002), 88328);
    series1.add(new Day(27, MonthConstants.FEBRUARY, 2002), 95805);
    series1.add(new Day(28, MonthConstants.FEBRUARY, 2002), 84035);
    series1.add(new Day(1, MonthConstants.MARCH, 2002), 113584);

    series1.add(new Day(4, MonthConstants.MARCH, 2002), 71872);
    series1.add(new Day(5, MonthConstants.MARCH, 2002), 83016);
    series1.add(new Day(6, MonthConstants.MARCH, 2002), 62273);
    series1.add(new Day(7, MonthConstants.MARCH, 2002), 138508);
    series1.add(new Day(8, MonthConstants.MARCH, 2002), 139428);

    series1.add(new Day(11, MonthConstants.MARCH, 2002), 80232);
    series1.add(new Day(12, MonthConstants.MARCH, 2002), 75693);
    series1.add(new Day(13, MonthConstants.MARCH, 2002), 104068);
    series1.add(new Day(14, MonthConstants.MARCH, 2002), 72171);
    series1.add(new Day(15, MonthConstants.MARCH, 2002), 117262);

    series1.add(new Day(18, MonthConstants.MARCH, 2002), 66048);
    series1.add(new Day(19, MonthConstants.MARCH, 2002), 87079);
    series1.add(new Day(20, MonthConstants.MARCH, 2002), 116084);
    series1.add(new Day(21, MonthConstants.MARCH, 2002), 113206);
    series1.add(new Day(22, MonthConstants.MARCH, 2002), 68326);

    series1.add(new Day(25, MonthConstants.MARCH, 2002), 34340);
    series1.add(new Day(26, MonthConstants.MARCH, 2002), 104413);
    series1.add(new Day(27, MonthConstants.MARCH, 2002), 57277);
    series1.add(new Day(28, MonthConstants.MARCH, 2002), 69936);

    series1.add(new Day(1, MonthConstants.APRIL, 2002), 57282);
    series1.add(new Day(2, MonthConstants.APRIL, 2002), 74686);
    series1.add(new Day(3, MonthConstants.APRIL, 2002), 108601);
    series1.add(new Day(4, MonthConstants.APRIL, 2002), 123381);
    series1.add(new Day(5, MonthConstants.APRIL, 2002), 106691);

    series1.add(new Day(8, MonthConstants.APRIL, 2002), 118535);
    series1.add(new Day(9, MonthConstants.APRIL, 2002), 85577);
    series1.add(new Day(10, MonthConstants.APRIL, 2002), 75441);
    series1.add(new Day(11, MonthConstants.APRIL, 2002), 88845);
    series1.add(new Day(12, MonthConstants.APRIL, 2002), 137141);

    series1.add(new Day(15, MonthConstants.APRIL, 2002), 72518);
    series1.add(new Day(16, MonthConstants.APRIL, 2002), 122100);
    series1.add(new Day(17, MonthConstants.APRIL, 2002), 136419);
    series1.add(new Day(18, MonthConstants.APRIL, 2002), 141338);
    series1.add(new Day(19, MonthConstants.APRIL, 2002), 80274);

    series1.add(new Day(22, MonthConstants.APRIL, 2002), 40449);
    series1.add(new Day(23, MonthConstants.APRIL, 2002), 72292);
    series1.add(new Day(24, MonthConstants.APRIL, 2002), 110644);
    series1.add(new Day(25, MonthConstants.APRIL, 2002), 145142);
    series1.add(new Day(26, MonthConstants.APRIL, 2002), 139573);

    series1.add(new Day(29, MonthConstants.APRIL, 2002), 51509);
    series1.add(new Day(30, MonthConstants.APRIL, 2002), 105782);
    series1.add(new Day(1, MonthConstants.MAY, 2002), 170680);
    series1.add(new Day(2, MonthConstants.MAY, 2002), 140800);
    series1.add(new Day(3, MonthConstants.MAY, 2002), 170411);

    series1.add(new Day(6, MonthConstants.MAY, 2002), 46172);
    series1.add(new Day(7, MonthConstants.MAY, 2002), 137251);
    series1.add(new Day(8, MonthConstants.MAY, 2002), 220626);
    series1.add(new Day(9, MonthConstants.MAY, 2002), 175902);
    series1.add(new Day(10, MonthConstants.MAY, 2002), 128807);

    series1.add(new Day(13, MonthConstants.MAY, 2002), 78208);
    series1.add(new Day(14, MonthConstants.MAY, 2002), 212048);
    series1.add(new Day(15, MonthConstants.MAY, 2002), 145643);
    series1.add(new Day(16, MonthConstants.MAY, 2002), 121520);
    series1.add(new Day(17, MonthConstants.MAY, 2002), 147820);

    series1.add(new Day(20, MonthConstants.MAY, 2002), 75969);
    series1.add(new Day(21, MonthConstants.MAY, 2002), 118970);
    series1.add(new Day(22, MonthConstants.MAY, 2002), 131013);
    series1.add(new Day(23, MonthConstants.MAY, 2002), 141100);
    series1.add(new Day(24, MonthConstants.MAY, 2002), 63606);

    series1.add(new Day(28, MonthConstants.MAY, 2002), 78687);
    series1.add(new Day(29, MonthConstants.MAY, 2002), 86743);
    series1.add(new Day(30, MonthConstants.MAY, 2002), 164376);
    series1.add(new Day(31, MonthConstants.MAY, 2002), 150108);

    series1.add(new Day(3, MonthConstants.JUNE, 2002), 132363);
    series1.add(new Day(4, MonthConstants.JUNE, 2002), 144902);
    series1.add(new Day(5, MonthConstants.JUNE, 2002), 123834);
    series1.add(new Day(6, MonthConstants.JUNE, 2002), 125004);
    series1.add(new Day(7, MonthConstants.JUNE, 2002), 165049);

    series1.add(new Day(10, MonthConstants.JUNE, 2002), 88069);
    series1.add(new Day(11, MonthConstants.JUNE, 2002), 114146);
    series1.add(new Day(12, MonthConstants.JUNE, 2002), 149992);
    series1.add(new Day(13, MonthConstants.JUNE, 2002), 191261);
    series1.add(new Day(14, MonthConstants.JUNE, 2002), 207444);

    series1.add(new Day(17, MonthConstants.JUNE, 2002), 117081);
    series1.add(new Day(18, MonthConstants.JUNE, 2002), 135924);
    series1.add(new Day(19, MonthConstants.JUNE, 2002), 179654);
    series1.add(new Day(20, MonthConstants.JUNE, 2002), 260936);
    series1.add(new Day(21, MonthConstants.JUNE, 2002), 140283);

    series1.add(new Day(24, MonthConstants.JUNE, 2002), 199052);
    series1.add(new Day(25, MonthConstants.JUNE, 2002), 191804);
    series1.add(new Day(26, MonthConstants.JUNE, 2002), 384936);
    series1.add(new Day(27, MonthConstants.JUNE, 2002), 313065);
    series1.add(new Day(28, MonthConstants.JUNE, 2002), 169963);

    series1.add(new Day(1, MonthConstants.JULY, 2002), 109906);
    series1.add(new Day(2, MonthConstants.JULY, 2002), 140644);
    series1.add(new Day(3, MonthConstants.JULY, 2002), 150898);

    series1.add(new Day(5, MonthConstants.JULY, 2002), 181355);

    series1.add(new Day(8, MonthConstants.JULY, 2002), 155042);
    series1.add(new Day(9, MonthConstants.JULY, 2002), 204305);
    series1.add(new Day(10, MonthConstants.JULY, 2002), 300113);
    series1.add(new Day(11, MonthConstants.JULY, 2002), 338948);
    series1.add(new Day(12, MonthConstants.JULY, 2002), 281325);

    series1.add(new Day(15, MonthConstants.JULY, 2002), 256101);
    series1.add(new Day(16, MonthConstants.JULY, 2002), 348164);
    series1.add(new Day(17, MonthConstants.JULY, 2002), 242995);
    series1.add(new Day(18, MonthConstants.JULY, 2002), 200744);
    series1.add(new Day(19, MonthConstants.JULY, 2002), 181071);

    series1.add(new Day(22, MonthConstants.JULY, 2002), 163266);
    series1.add(new Day(23, MonthConstants.JULY, 2002), 188508);
    series1.add(new Day(24, MonthConstants.JULY, 2002), 308070);
    series1.add(new Day(25, MonthConstants.JULY, 2002), 230901);
    series1.add(new Day(26, MonthConstants.JULY, 2002), 162577);

    series1.add(new Day(29, MonthConstants.JULY, 2002), 216318);
    series1.add(new Day(30, MonthConstants.JULY, 2002), 280677);
    series1.add(new Day(31, MonthConstants.JULY, 2002), 260236);
    series1.add(new Day(1, MonthConstants.AUGUST, 2002), 242803);
    series1.add(new Day(2, MonthConstants.AUGUST, 2002), 298490);

    series1.add(new Day(5, MonthConstants.AUGUST, 2002), 182890);
    series1.add(new Day(6, MonthConstants.AUGUST, 2002), 232273);
    series1.add(new Day(7, MonthConstants.AUGUST, 2002), 253552);
    series1.add(new Day(8, MonthConstants.AUGUST, 2002), 165365);
    series1.add(new Day(9, MonthConstants.AUGUST, 2002), 160382);

    series1.add(new Day(12, MonthConstants.AUGUST, 2002), 118030);
    series1.add(new Day(13, MonthConstants.AUGUST, 2002), 208807);
    series1.add(new Day(14, MonthConstants.AUGUST, 2002), 231599);
    series1.add(new Day(15, MonthConstants.AUGUST, 2002), 343482);
    series1.add(new Day(16, MonthConstants.AUGUST, 2002), 186116);

    series1.add(new Day(19, MonthConstants.AUGUST, 2002), 96437);
    series1.add(new Day(20, MonthConstants.AUGUST, 2002), 151735);
    series1.add(new Day(21, MonthConstants.AUGUST, 2002), 167390);
    series1.add(new Day(22, MonthConstants.AUGUST, 2002), 127184);
    series1.add(new Day(23, MonthConstants.AUGUST, 2002), 80205);

    series1.add(new Day(26, MonthConstants.AUGUST, 2002), 79893);
    series1.add(new Day(27, MonthConstants.AUGUST, 2002), 201723);
    series1.add(new Day(28, MonthConstants.AUGUST, 2002), 114001);
    series1.add(new Day(29, MonthConstants.AUGUST, 2002), 188389);
    series1.add(new Day(30, MonthConstants.AUGUST, 2002), 162801);

    series1.add(new Day(3, MonthConstants.SEPTEMBER, 2002), 200951);
    series1.add(new Day(4, MonthConstants.SEPTEMBER, 2002), 129229);
    series1.add(new Day(5, MonthConstants.SEPTEMBER, 2002), 183348);
    series1.add(new Day(6, MonthConstants.SEPTEMBER, 2002), 216722);

    series1.add(new Day(9, MonthConstants.SEPTEMBER, 2002), 128575);
    series1.add(new Day(10, MonthConstants.SEPTEMBER, 2002), 224714);
    series1.add(new Day(11, MonthConstants.SEPTEMBER, 2002), 144224);
    series1.add(new Day(12, MonthConstants.SEPTEMBER, 2002), 195721);
    series1.add(new Day(13, MonthConstants.SEPTEMBER, 2002), 160724);

    series1.add(new Day(16, MonthConstants.SEPTEMBER, 2002), 65473);
    series1.add(new Day(17, MonthConstants.SEPTEMBER, 2002), 141274);
    series1.add(new Day(18, MonthConstants.SEPTEMBER, 2002), 115084);
    series1.add(new Day(19, MonthConstants.SEPTEMBER, 2002), 242106);
    series1.add(new Day(20, MonthConstants.SEPTEMBER, 2002), 130034);

    series1.add(new Day(23, MonthConstants.SEPTEMBER, 2002), 95215);
    series1.add(new Day(24, MonthConstants.SEPTEMBER, 2002), 229288);
    series1.add(new Day(25, MonthConstants.SEPTEMBER, 2002), 163672);
    series1.add(new Day(26, MonthConstants.SEPTEMBER, 2002), 193573);
    series1.add(new Day(27, MonthConstants.SEPTEMBER, 2002), 170741);

    series1.add(new Day(30, MonthConstants.SEPTEMBER, 2002), 199615);
    series1.add(new Day(1, MonthConstants.OCTOBER, 2002), 170771);
    series1.add(new Day(2, MonthConstants.OCTOBER, 2002), 138498);
    series1.add(new Day(3, MonthConstants.OCTOBER, 2002), 154774);
    series1.add(new Day(4, MonthConstants.OCTOBER, 2002), 287154);

    series1.add(new Day(7, MonthConstants.OCTOBER, 2002), 111762);
    series1.add(new Day(8, MonthConstants.OCTOBER, 2002), 172535);
    series1.add(new Day(9, MonthConstants.OCTOBER, 2002), 148339);
    series1.add(new Day(10, MonthConstants.OCTOBER, 2002), 178796);
    series1.add(new Day(11, MonthConstants.OCTOBER, 2002), 153499);

    series1.add(new Day(14, MonthConstants.OCTOBER, 2002), 4589);
    series1.add(new Day(15, MonthConstants.OCTOBER, 2002), 172088);
    series1.add(new Day(16, MonthConstants.OCTOBER, 2002), 151267);
    series1.add(new Day(17, MonthConstants.OCTOBER, 2002), 222680);
    series1.add(new Day(18, MonthConstants.OCTOBER, 2002), 127019);

    series1.add(new Day(21, MonthConstants.OCTOBER, 2002), 118226);
    series1.add(new Day(22, MonthConstants.OCTOBER, 2002), 183031);
    series1.add(new Day(23, MonthConstants.OCTOBER, 2002), 221005);
    series1.add(new Day(24, MonthConstants.OCTOBER, 2002), 121333);
    series1.add(new Day(25, MonthConstants.OCTOBER, 2002), 138179);

    series1.add(new Day(28, MonthConstants.OCTOBER, 2002), 162012);
    series1.add(new Day(29, MonthConstants.OCTOBER, 2002), 237355);
    series1.add(new Day(30, MonthConstants.OCTOBER, 2002), 161650);
    series1.add(new Day(31, MonthConstants.OCTOBER, 2002), 207569);

    return new TimeSeriesCollection(series1);

}

From source file:com.jonas.testing.jfreechart.demos.DemoDatasetFactory.java

/**
 * Returns a time series of the daily EUR/GBP exchange rates in 2001 (to date), for use in
 * the JFreeChart demonstration application.
 * <P>/*w w  w .  j ava 2  s.  com*/
 * You wouldn't normally create a time series in this way.  Typically, values would
 * be read from a database.
 *
 * @return a time series.
 *
 */
public static TimeSeries createEURTimeSeries() {

    final TimeSeries t1 = new TimeSeries("EUR/GBP");
    try {
        t1.add(new Day(2, MonthConstants.JANUARY, 2001), new Double(1.5788));
        t1.add(new Day(3, MonthConstants.JANUARY, 2001), new Double(1.5913));
        t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.5807));
        t1.add(new Day(5, MonthConstants.JANUARY, 2001), new Double(1.5711));
        t1.add(new Day(8, MonthConstants.JANUARY, 2001), new Double(1.5778));
        t1.add(new Day(9, MonthConstants.JANUARY, 2001), new Double(1.5851));
        t1.add(new Day(10, MonthConstants.JANUARY, 2001), new Double(1.5846));
        t1.add(new Day(11, MonthConstants.JANUARY, 2001), new Double(1.5727));
        t1.add(new Day(12, MonthConstants.JANUARY, 2001), new Double(1.5585));
        t1.add(new Day(15, MonthConstants.JANUARY, 2001), new Double(1.5694));
        t1.add(new Day(16, MonthConstants.JANUARY, 2001), new Double(1.5629));
        t1.add(new Day(17, MonthConstants.JANUARY, 2001), new Double(1.5831));
        t1.add(new Day(18, MonthConstants.JANUARY, 2001), new Double(1.5624));
        t1.add(new Day(19, MonthConstants.JANUARY, 2001), new Double(1.5694));
        t1.add(new Day(22, MonthConstants.JANUARY, 2001), new Double(1.5615));
        t1.add(new Day(23, MonthConstants.JANUARY, 2001), new Double(1.5656));
        t1.add(new Day(24, MonthConstants.JANUARY, 2001), new Double(1.5795));
        t1.add(new Day(25, MonthConstants.JANUARY, 2001), new Double(1.5852));
        t1.add(new Day(26, MonthConstants.JANUARY, 2001), new Double(1.5797));
        t1.add(new Day(29, MonthConstants.JANUARY, 2001), new Double(1.5862));
        t1.add(new Day(30, MonthConstants.JANUARY, 2001), new Double(1.5803));
        t1.add(new Day(31, MonthConstants.JANUARY, 2001), new Double(1.5714));
        t1.add(new Day(1, MonthConstants.FEBRUARY, 2001), new Double(1.5717));
        t1.add(new Day(2, MonthConstants.FEBRUARY, 2001), new Double(1.5735));
        t1.add(new Day(5, MonthConstants.FEBRUARY, 2001), new Double(1.5691));
        t1.add(new Day(6, MonthConstants.FEBRUARY, 2001), new Double(1.5676));
        t1.add(new Day(7, MonthConstants.FEBRUARY, 2001), new Double(1.5677));
        t1.add(new Day(8, MonthConstants.FEBRUARY, 2001), new Double(1.5737));
        t1.add(new Day(9, MonthConstants.FEBRUARY, 2001), new Double(1.5654));
        t1.add(new Day(12, MonthConstants.FEBRUARY, 2001), new Double(1.5621));
        t1.add(new Day(13, MonthConstants.FEBRUARY, 2001), new Double(1.5761));
        t1.add(new Day(14, MonthConstants.FEBRUARY, 2001), new Double(1.5898));
        t1.add(new Day(15, MonthConstants.FEBRUARY, 2001), new Double(1.6045));
        t1.add(new Day(16, MonthConstants.FEBRUARY, 2001), new Double(1.5852));
        t1.add(new Day(19, MonthConstants.FEBRUARY, 2001), new Double(1.5704));
        t1.add(new Day(20, MonthConstants.FEBRUARY, 2001), new Double(1.5892));
        t1.add(new Day(21, MonthConstants.FEBRUARY, 2001), new Double(1.5844));
        t1.add(new Day(22, MonthConstants.FEBRUARY, 2001), new Double(1.5934));
        t1.add(new Day(23, MonthConstants.FEBRUARY, 2001), new Double(1.5951));
        t1.add(new Day(26, MonthConstants.FEBRUARY, 2001), new Double(1.5848));
        t1.add(new Day(27, MonthConstants.FEBRUARY, 2001), new Double(1.5706));
        t1.add(new Day(28, MonthConstants.FEBRUARY, 2001), new Double(1.5680));
        t1.add(new Day(1, MonthConstants.MARCH, 2001), new Double(1.5645));
        t1.add(new Day(2, MonthConstants.MARCH, 2001), new Double(1.5754));
        t1.add(new Day(5, MonthConstants.MARCH, 2001), new Double(1.5808));
        t1.add(new Day(6, MonthConstants.MARCH, 2001), new Double(1.5766));
        t1.add(new Day(7, MonthConstants.MARCH, 2001), new Double(1.5756));
        t1.add(new Day(8, MonthConstants.MARCH, 2001), new Double(1.5760));
        t1.add(new Day(9, MonthConstants.MARCH, 2001), new Double(1.5748));
        t1.add(new Day(12, MonthConstants.MARCH, 2001), new Double(1.5779));
        t1.add(new Day(13, MonthConstants.MARCH, 2001), new Double(1.5837));
        t1.add(new Day(14, MonthConstants.MARCH, 2001), new Double(1.5886));
        t1.add(new Day(15, MonthConstants.MARCH, 2001), new Double(1.5931));
        t1.add(new Day(16, MonthConstants.MARCH, 2001), new Double(1.5945));
        t1.add(new Day(19, MonthConstants.MARCH, 2001), new Double(1.5880));
        t1.add(new Day(20, MonthConstants.MARCH, 2001), new Double(1.5817));
        t1.add(new Day(21, MonthConstants.MARCH, 2001), new Double(1.5927));
        t1.add(new Day(22, MonthConstants.MARCH, 2001), new Double(1.6065));
        t1.add(new Day(23, MonthConstants.MARCH, 2001), new Double(1.6006));
        t1.add(new Day(26, MonthConstants.MARCH, 2001), new Double(1.6007));
        t1.add(new Day(27, MonthConstants.MARCH, 2001), new Double(1.5989));
        t1.add(new Day(28, MonthConstants.MARCH, 2001), new Double(1.6135));
        t1.add(new Day(29, MonthConstants.MARCH, 2001), new Double(1.6282));
        t1.add(new Day(30, MonthConstants.MARCH, 2001), new Double(1.6090));
        t1.add(new Day(2, MonthConstants.APRIL, 2001), new Double(1.6107));
        t1.add(new Day(3, MonthConstants.APRIL, 2001), new Double(1.6093));
        t1.add(new Day(4, MonthConstants.APRIL, 2001), new Double(1.5880));
        t1.add(new Day(5, MonthConstants.APRIL, 2001), new Double(1.5931));
        t1.add(new Day(6, MonthConstants.APRIL, 2001), new Double(1.5968));
        t1.add(new Day(9, MonthConstants.APRIL, 2001), new Double(1.6072));
        t1.add(new Day(10, MonthConstants.APRIL, 2001), new Double(1.6167));
        t1.add(new Day(11, MonthConstants.APRIL, 2001), new Double(1.6214));
        t1.add(new Day(12, MonthConstants.APRIL, 2001), new Double(1.6120));
        t1.add(new Day(17, MonthConstants.APRIL, 2001), new Double(1.6229));
        t1.add(new Day(18, MonthConstants.APRIL, 2001), new Double(1.6298));
        t1.add(new Day(19, MonthConstants.APRIL, 2001), new Double(1.6159));
        t1.add(new Day(20, MonthConstants.APRIL, 2001), new Double(1.5996));
        t1.add(new Day(23, MonthConstants.APRIL, 2001), new Double(1.6042));
        t1.add(new Day(24, MonthConstants.APRIL, 2001), new Double(1.6061));
        t1.add(new Day(25, MonthConstants.APRIL, 2001), new Double(1.6045));
        t1.add(new Day(26, MonthConstants.APRIL, 2001), new Double(1.5970));
        t1.add(new Day(27, MonthConstants.APRIL, 2001), new Double(1.6095));
        t1.add(new Day(30, MonthConstants.APRIL, 2001), new Double(1.6141));
        t1.add(new Day(1, MonthConstants.MAY, 2001), new Double(1.6076));
        t1.add(new Day(2, MonthConstants.MAY, 2001), new Double(1.6077));
        t1.add(new Day(3, MonthConstants.MAY, 2001), new Double(1.6035));
        t1.add(new Day(4, MonthConstants.MAY, 2001), new Double(1.6060));
        t1.add(new Day(8, MonthConstants.MAY, 2001), new Double(1.6178));
        t1.add(new Day(9, MonthConstants.MAY, 2001), new Double(1.6083));
        t1.add(new Day(10, MonthConstants.MAY, 2001), new Double(1.6107));
        t1.add(new Day(11, MonthConstants.MAY, 2001), new Double(1.6209));
        t1.add(new Day(14, MonthConstants.MAY, 2001), new Double(1.6228));
        t1.add(new Day(15, MonthConstants.MAY, 2001), new Double(1.6184));
        t1.add(new Day(16, MonthConstants.MAY, 2001), new Double(1.6167));
        t1.add(new Day(17, MonthConstants.MAY, 2001), new Double(1.6223));
        t1.add(new Day(18, MonthConstants.MAY, 2001), new Double(1.6305));
        t1.add(new Day(21, MonthConstants.MAY, 2001), new Double(1.6420));
        t1.add(new Day(22, MonthConstants.MAY, 2001), new Double(1.6484));
        t1.add(new Day(23, MonthConstants.MAY, 2001), new Double(1.6547));
        t1.add(new Day(24, MonthConstants.MAY, 2001), new Double(1.6444));
        t1.add(new Day(25, MonthConstants.MAY, 2001), new Double(1.6577));
        t1.add(new Day(29, MonthConstants.MAY, 2001), new Double(1.6606));
        t1.add(new Day(30, MonthConstants.MAY, 2001), new Double(1.6604));
        t1.add(new Day(31, MonthConstants.MAY, 2001), new Double(1.6772));
        t1.add(new Day(1, MonthConstants.JUNE, 2001), new Double(1.6717));
        t1.add(new Day(4, MonthConstants.JUNE, 2001), new Double(1.6685));
        t1.add(new Day(5, MonthConstants.JUNE, 2001), new Double(1.6621));
        t1.add(new Day(6, MonthConstants.JUNE, 2001), new Double(1.6460));
        t1.add(new Day(7, MonthConstants.JUNE, 2001), new Double(1.6333));
        t1.add(new Day(8, MonthConstants.JUNE, 2001), new Double(1.6265));
        t1.add(new Day(11, MonthConstants.JUNE, 2001), new Double(1.6311));
        t1.add(new Day(12, MonthConstants.JUNE, 2001), new Double(1.6238));
        t1.add(new Day(13, MonthConstants.JUNE, 2001), new Double(1.6300));
        t1.add(new Day(14, MonthConstants.JUNE, 2001), new Double(1.6289));
        t1.add(new Day(15, MonthConstants.JUNE, 2001), new Double(1.6276));
        t1.add(new Day(18, MonthConstants.JUNE, 2001), new Double(1.6299));
        t1.add(new Day(19, MonthConstants.JUNE, 2001), new Double(1.6353));
        t1.add(new Day(20, MonthConstants.JUNE, 2001), new Double(1.6378));
        t1.add(new Day(21, MonthConstants.JUNE, 2001), new Double(1.6567));
        t1.add(new Day(22, MonthConstants.JUNE, 2001), new Double(1.6523));
        t1.add(new Day(25, MonthConstants.JUNE, 2001), new Double(1.6418));
        t1.add(new Day(26, MonthConstants.JUNE, 2001), new Double(1.6429));
        t1.add(new Day(27, MonthConstants.JUNE, 2001), new Double(1.6439));
        t1.add(new Day(28, MonthConstants.JUNE, 2001), new Double(1.6605));
        t1.add(new Day(29, MonthConstants.JUNE, 2001), new Double(1.6599));
        t1.add(new Day(2, MonthConstants.JULY, 2001), new Double(1.6727));
        t1.add(new Day(3, MonthConstants.JULY, 2001), new Double(1.6620));
        t1.add(new Day(4, MonthConstants.JULY, 2001), new Double(1.6628));
        t1.add(new Day(5, MonthConstants.JULY, 2001), new Double(1.6730));
        t1.add(new Day(6, MonthConstants.JULY, 2001), new Double(1.6649));
        t1.add(new Day(9, MonthConstants.JULY, 2001), new Double(1.6603));
        t1.add(new Day(10, MonthConstants.JULY, 2001), new Double(1.6489));
        t1.add(new Day(11, MonthConstants.JULY, 2001), new Double(1.6421));
        t1.add(new Day(12, MonthConstants.JULY, 2001), new Double(1.6498));
        t1.add(new Day(13, MonthConstants.JULY, 2001), new Double(1.6447));
        t1.add(new Day(16, MonthConstants.JULY, 2001), new Double(1.6373));
        t1.add(new Day(17, MonthConstants.JULY, 2001), new Double(1.6443));
        t1.add(new Day(18, MonthConstants.JULY, 2001), new Double(1.6246));
        t1.add(new Day(19, MonthConstants.JULY, 2001), new Double(1.6295));
        t1.add(new Day(20, MonthConstants.JULY, 2001), new Double(1.6362));
        t1.add(new Day(23, MonthConstants.JULY, 2001), new Double(1.6348));
        t1.add(new Day(24, MonthConstants.JULY, 2001), new Double(1.6242));
        t1.add(new Day(25, MonthConstants.JULY, 2001), new Double(1.6241));
        t1.add(new Day(26, MonthConstants.JULY, 2001), new Double(1.6281));
        t1.add(new Day(27, MonthConstants.JULY, 2001), new Double(1.6296));
        t1.add(new Day(30, MonthConstants.JULY, 2001), new Double(1.6279));
        t1.add(new Day(31, MonthConstants.JULY, 2001), new Double(1.6300));
        t1.add(new Day(1, MonthConstants.AUGUST, 2001), new Double(1.6290));
        t1.add(new Day(2, MonthConstants.AUGUST, 2001), new Double(1.6237));
        t1.add(new Day(3, MonthConstants.AUGUST, 2001), new Double(1.6138));
        t1.add(new Day(6, MonthConstants.AUGUST, 2001), new Double(1.6121));
        t1.add(new Day(7, MonthConstants.AUGUST, 2001), new Double(1.6170));
        t1.add(new Day(8, MonthConstants.AUGUST, 2001), new Double(1.6135));
        t1.add(new Day(9, MonthConstants.AUGUST, 2001), new Double(1.5996));
        t1.add(new Day(10, MonthConstants.AUGUST, 2001), new Double(1.5931));
        t1.add(new Day(13, MonthConstants.AUGUST, 2001), new Double(1.5828));
        t1.add(new Day(14, MonthConstants.AUGUST, 2001), new Double(1.5824));
        t1.add(new Day(15, MonthConstants.AUGUST, 2001), new Double(1.5783));
        t1.add(new Day(16, MonthConstants.AUGUST, 2001), new Double(1.5810));
        t1.add(new Day(17, MonthConstants.AUGUST, 2001), new Double(1.5761));
        t1.add(new Day(20, MonthConstants.AUGUST, 2001), new Double(1.5831));
        t1.add(new Day(21, MonthConstants.AUGUST, 2001), new Double(1.5870));
        t1.add(new Day(22, MonthConstants.AUGUST, 2001), new Double(1.5808));
        t1.add(new Day(23, MonthConstants.AUGUST, 2001), new Double(1.5845));
        t1.add(new Day(24, MonthConstants.AUGUST, 2001), new Double(1.5844));
        t1.add(new Day(28, MonthConstants.AUGUST, 2001), new Double(1.5924));
        t1.add(new Day(29, MonthConstants.AUGUST, 2001), new Double(1.5950));
        t1.add(new Day(30, MonthConstants.AUGUST, 2001), new Double(1.5941));
        t1.add(new Day(31, MonthConstants.AUGUST, 2001), new Double(1.5968));
        t1.add(new Day(3, MonthConstants.SEPTEMBER, 2001), new Double(1.6020));
        t1.add(new Day(4, MonthConstants.SEPTEMBER, 2001), new Double(1.6236));
        t1.add(new Day(5, MonthConstants.SEPTEMBER, 2001), new Double(1.6352));
        t1.add(new Day(6, MonthConstants.SEPTEMBER, 2001), new Double(1.6302));
        t1.add(new Day(7, MonthConstants.SEPTEMBER, 2001), new Double(1.6180));
        t1.add(new Day(10, MonthConstants.SEPTEMBER, 2001), new Double(1.6218));
        t1.add(new Day(11, MonthConstants.SEPTEMBER, 2001), new Double(1.6182));
        t1.add(new Day(12, MonthConstants.SEPTEMBER, 2001), new Double(1.6157));
        t1.add(new Day(13, MonthConstants.SEPTEMBER, 2001), new Double(1.6171));
        t1.add(new Day(14, MonthConstants.SEPTEMBER, 2001), new Double(1.5960));
        t1.add(new Day(17, MonthConstants.SEPTEMBER, 2001), new Double(1.5952));
        t1.add(new Day(18, MonthConstants.SEPTEMBER, 2001), new Double(1.5863));
        t1.add(new Day(19, MonthConstants.SEPTEMBER, 2001), new Double(1.5790));
        t1.add(new Day(20, MonthConstants.SEPTEMBER, 2001), new Double(1.5811));
        t1.add(new Day(21, MonthConstants.SEPTEMBER, 2001), new Double(1.5917));
        t1.add(new Day(24, MonthConstants.SEPTEMBER, 2001), new Double(1.6005));
        t1.add(new Day(25, MonthConstants.SEPTEMBER, 2001), new Double(1.5915));
        t1.add(new Day(26, MonthConstants.SEPTEMBER, 2001), new Double(1.6012));
        t1.add(new Day(27, MonthConstants.SEPTEMBER, 2001), new Double(1.6032));
        t1.add(new Day(28, MonthConstants.SEPTEMBER, 2001), new Double(1.6133));
        t1.add(new Day(1, MonthConstants.OCTOBER, 2001), new Double(1.6147));
        t1.add(new Day(2, MonthConstants.OCTOBER, 2001), new Double(1.6002));
        t1.add(new Day(3, MonthConstants.OCTOBER, 2001), new Double(1.6041));
        t1.add(new Day(4, MonthConstants.OCTOBER, 2001), new Double(1.6172));
        t1.add(new Day(5, MonthConstants.OCTOBER, 2001), new Double(1.6121));
        t1.add(new Day(8, MonthConstants.OCTOBER, 2001), new Double(1.6044));
        t1.add(new Day(9, MonthConstants.OCTOBER, 2001), new Double(1.5974));
        t1.add(new Day(10, MonthConstants.OCTOBER, 2001), new Double(1.5915));
        t1.add(new Day(11, MonthConstants.OCTOBER, 2001), new Double(1.6022));
        t1.add(new Day(12, MonthConstants.OCTOBER, 2001), new Double(1.6014));
        t1.add(new Day(15, MonthConstants.OCTOBER, 2001), new Double(1.5942));
        t1.add(new Day(16, MonthConstants.OCTOBER, 2001), new Double(1.5925));
        t1.add(new Day(17, MonthConstants.OCTOBER, 2001), new Double(1.6007));
        t1.add(new Day(18, MonthConstants.OCTOBER, 2001), new Double(1.6000));
        t1.add(new Day(19, MonthConstants.OCTOBER, 2001), new Double(1.6030));
        t1.add(new Day(22, MonthConstants.OCTOBER, 2001), new Double(1.6014));
        t1.add(new Day(23, MonthConstants.OCTOBER, 2001), new Double(1.5995));
        t1.add(new Day(24, MonthConstants.OCTOBER, 2001), new Double(1.5951));
        t1.add(new Day(25, MonthConstants.OCTOBER, 2001), new Double(1.5953));
        t1.add(new Day(26, MonthConstants.OCTOBER, 2001), new Double(1.6057));
        t1.add(new Day(29, MonthConstants.OCTOBER, 2001), new Double(1.6051));
        t1.add(new Day(30, MonthConstants.OCTOBER, 2001), new Double(1.6027));
        t1.add(new Day(31, MonthConstants.OCTOBER, 2001), new Double(1.6144));
        t1.add(new Day(1, MonthConstants.NOVEMBER, 2001), new Double(1.6139));
        t1.add(new Day(2, MonthConstants.NOVEMBER, 2001), new Double(1.6189));
        t1.add(new Day(5, MonthConstants.NOVEMBER, 2001), new Double(1.6248));
        t1.add(new Day(6, MonthConstants.NOVEMBER, 2001), new Double(1.6267));
        t1.add(new Day(7, MonthConstants.NOVEMBER, 2001), new Double(1.6281));
        t1.add(new Day(8, MonthConstants.NOVEMBER, 2001), new Double(1.6310));
        t1.add(new Day(9, MonthConstants.NOVEMBER, 2001), new Double(1.6313));
        t1.add(new Day(12, MonthConstants.NOVEMBER, 2001), new Double(1.6272));
        t1.add(new Day(13, MonthConstants.NOVEMBER, 2001), new Double(1.6361));
        t1.add(new Day(14, MonthConstants.NOVEMBER, 2001), new Double(1.6323));
        t1.add(new Day(15, MonthConstants.NOVEMBER, 2001), new Double(1.6252));
        t1.add(new Day(16, MonthConstants.NOVEMBER, 2001), new Double(1.6141));
        t1.add(new Day(19, MonthConstants.NOVEMBER, 2001), new Double(1.6086));
        t1.add(new Day(20, MonthConstants.NOVEMBER, 2001), new Double(1.6055));
        t1.add(new Day(21, MonthConstants.NOVEMBER, 2001), new Double(1.6132));
        t1.add(new Day(22, MonthConstants.NOVEMBER, 2001), new Double(1.6074));
        t1.add(new Day(23, MonthConstants.NOVEMBER, 2001), new Double(1.6065));
        t1.add(new Day(26, MonthConstants.NOVEMBER, 2001), new Double(1.6061));
        t1.add(new Day(27, MonthConstants.NOVEMBER, 2001), new Double(1.6039));
        t1.add(new Day(28, MonthConstants.NOVEMBER, 2001), new Double(1.6069));
        t1.add(new Day(29, MonthConstants.NOVEMBER, 2001), new Double(1.6044));
        t1.add(new Day(30, MonthConstants.NOVEMBER, 2001), new Double(1.5928));
    } catch (Exception e) {
        System.err.println(e.getMessage());
    }
    return t1;
}

From source file:gui.DemoDatasetFactory.java

/**
 * Returns a time series of the daily EUR/GBP exchange rates in 2001 (to date), for use in
 * the JFreeChart demonstration application.
 * <P>/*from w  w  w . j av a  2s. c  om*/
 * You wouldn't normally create a time series in this way.  Typically, values would
 * be read from a database.
 *
 * @return a time series.
 *
 */
public static TimeSeries createEURTimeSeries() {

    TimeSeries t1 = new TimeSeries("EUR/GBP");
    try {
        t1.add(new Day(2, MonthConstants.JANUARY, 2001), new Double(1.5788));
        t1.add(new Day(3, MonthConstants.JANUARY, 2001), new Double(1.5913));
        t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(1.5807));
        t1.add(new Day(5, MonthConstants.JANUARY, 2001), new Double(1.5711));
        t1.add(new Day(8, MonthConstants.JANUARY, 2001), new Double(1.5778));
        t1.add(new Day(9, MonthConstants.JANUARY, 2001), new Double(1.5851));
        t1.add(new Day(10, MonthConstants.JANUARY, 2001), new Double(1.5846));
        t1.add(new Day(11, MonthConstants.JANUARY, 2001), new Double(1.5727));
        t1.add(new Day(12, MonthConstants.JANUARY, 2001), new Double(1.5585));
        t1.add(new Day(15, MonthConstants.JANUARY, 2001), new Double(1.5694));
        t1.add(new Day(16, MonthConstants.JANUARY, 2001), new Double(1.5629));
        t1.add(new Day(17, MonthConstants.JANUARY, 2001), new Double(1.5831));
        t1.add(new Day(18, MonthConstants.JANUARY, 2001), new Double(1.5624));
        t1.add(new Day(19, MonthConstants.JANUARY, 2001), new Double(1.5694));
        t1.add(new Day(22, MonthConstants.JANUARY, 2001), new Double(1.5615));
        t1.add(new Day(23, MonthConstants.JANUARY, 2001), new Double(1.5656));
        t1.add(new Day(24, MonthConstants.JANUARY, 2001), new Double(1.5795));
        t1.add(new Day(25, MonthConstants.JANUARY, 2001), new Double(1.5852));
        t1.add(new Day(26, MonthConstants.JANUARY, 2001), new Double(1.5797));
        t1.add(new Day(29, MonthConstants.JANUARY, 2001), new Double(1.5862));
        t1.add(new Day(30, MonthConstants.JANUARY, 2001), new Double(1.5803));
        t1.add(new Day(31, MonthConstants.JANUARY, 2001), new Double(1.5714));
        t1.add(new Day(1, MonthConstants.FEBRUARY, 2001), new Double(1.5717));
        t1.add(new Day(2, MonthConstants.FEBRUARY, 2001), new Double(1.5735));
        t1.add(new Day(5, MonthConstants.FEBRUARY, 2001), new Double(1.5691));
        t1.add(new Day(6, MonthConstants.FEBRUARY, 2001), new Double(1.5676));
        t1.add(new Day(7, MonthConstants.FEBRUARY, 2001), new Double(1.5677));
        t1.add(new Day(8, MonthConstants.FEBRUARY, 2001), new Double(1.5737));
        t1.add(new Day(9, MonthConstants.FEBRUARY, 2001), new Double(1.5654));
        t1.add(new Day(12, MonthConstants.FEBRUARY, 2001), new Double(1.5621));
        t1.add(new Day(13, MonthConstants.FEBRUARY, 2001), new Double(1.5761));
        t1.add(new Day(14, MonthConstants.FEBRUARY, 2001), new Double(1.5898));
        t1.add(new Day(15, MonthConstants.FEBRUARY, 2001), new Double(1.6045));
        t1.add(new Day(16, MonthConstants.FEBRUARY, 2001), new Double(1.5852));
        t1.add(new Day(19, MonthConstants.FEBRUARY, 2001), new Double(1.5704));
        t1.add(new Day(20, MonthConstants.FEBRUARY, 2001), new Double(1.5892));
        t1.add(new Day(21, MonthConstants.FEBRUARY, 2001), new Double(1.5844));
        t1.add(new Day(22, MonthConstants.FEBRUARY, 2001), new Double(1.5934));
        t1.add(new Day(23, MonthConstants.FEBRUARY, 2001), new Double(1.5951));
        t1.add(new Day(26, MonthConstants.FEBRUARY, 2001), new Double(1.5848));
        t1.add(new Day(27, MonthConstants.FEBRUARY, 2001), new Double(1.5706));
        t1.add(new Day(28, MonthConstants.FEBRUARY, 2001), new Double(1.5680));
        t1.add(new Day(1, MonthConstants.MARCH, 2001), new Double(1.5645));
        t1.add(new Day(2, MonthConstants.MARCH, 2001), new Double(1.5754));
        t1.add(new Day(5, MonthConstants.MARCH, 2001), new Double(1.5808));
        t1.add(new Day(6, MonthConstants.MARCH, 2001), new Double(1.5766));
        t1.add(new Day(7, MonthConstants.MARCH, 2001), new Double(1.5756));
        t1.add(new Day(8, MonthConstants.MARCH, 2001), new Double(1.5760));
        t1.add(new Day(9, MonthConstants.MARCH, 2001), new Double(1.5748));
        t1.add(new Day(12, MonthConstants.MARCH, 2001), new Double(1.5779));
        t1.add(new Day(13, MonthConstants.MARCH, 2001), new Double(1.5837));
        t1.add(new Day(14, MonthConstants.MARCH, 2001), new Double(1.5886));
        t1.add(new Day(15, MonthConstants.MARCH, 2001), new Double(1.5931));
        t1.add(new Day(16, MonthConstants.MARCH, 2001), new Double(1.5945));
        t1.add(new Day(19, MonthConstants.MARCH, 2001), new Double(1.5880));
        t1.add(new Day(20, MonthConstants.MARCH, 2001), new Double(1.5817));
        t1.add(new Day(21, MonthConstants.MARCH, 2001), new Double(1.5927));
        t1.add(new Day(22, MonthConstants.MARCH, 2001), new Double(1.6065));
        t1.add(new Day(23, MonthConstants.MARCH, 2001), new Double(1.6006));
        t1.add(new Day(26, MonthConstants.MARCH, 2001), new Double(1.6007));
        t1.add(new Day(27, MonthConstants.MARCH, 2001), new Double(1.5989));
        t1.add(new Day(28, MonthConstants.MARCH, 2001), new Double(1.6135));
        t1.add(new Day(29, MonthConstants.MARCH, 2001), new Double(1.6282));
        t1.add(new Day(30, MonthConstants.MARCH, 2001), new Double(1.6090));
        t1.add(new Day(2, MonthConstants.APRIL, 2001), new Double(1.6107));
        t1.add(new Day(3, MonthConstants.APRIL, 2001), new Double(1.6093));
        t1.add(new Day(4, MonthConstants.APRIL, 2001), new Double(1.5880));
        t1.add(new Day(5, MonthConstants.APRIL, 2001), new Double(1.5931));
        t1.add(new Day(6, MonthConstants.APRIL, 2001), new Double(1.5968));
        t1.add(new Day(9, MonthConstants.APRIL, 2001), new Double(1.6072));
        t1.add(new Day(10, MonthConstants.APRIL, 2001), new Double(1.6167));
        t1.add(new Day(11, MonthConstants.APRIL, 2001), new Double(1.6214));
        t1.add(new Day(12, MonthConstants.APRIL, 2001), new Double(1.6120));
        t1.add(new Day(17, MonthConstants.APRIL, 2001), new Double(1.6229));
        t1.add(new Day(18, MonthConstants.APRIL, 2001), new Double(1.6298));
        t1.add(new Day(19, MonthConstants.APRIL, 2001), new Double(1.6159));
        t1.add(new Day(20, MonthConstants.APRIL, 2001), new Double(1.5996));
        t1.add(new Day(23, MonthConstants.APRIL, 2001), new Double(1.6042));
        t1.add(new Day(24, MonthConstants.APRIL, 2001), new Double(1.6061));
        t1.add(new Day(25, MonthConstants.APRIL, 2001), new Double(1.6045));
        t1.add(new Day(26, MonthConstants.APRIL, 2001), new Double(1.5970));
        t1.add(new Day(27, MonthConstants.APRIL, 2001), new Double(1.6095));
        t1.add(new Day(30, MonthConstants.APRIL, 2001), new Double(1.6141));
        t1.add(new Day(1, MonthConstants.MAY, 2001), new Double(1.6076));
        t1.add(new Day(2, MonthConstants.MAY, 2001), new Double(1.6077));
        t1.add(new Day(3, MonthConstants.MAY, 2001), new Double(1.6035));
        t1.add(new Day(4, MonthConstants.MAY, 2001), new Double(1.6060));
        t1.add(new Day(8, MonthConstants.MAY, 2001), new Double(1.6178));
        t1.add(new Day(9, MonthConstants.MAY, 2001), new Double(1.6083));
        t1.add(new Day(10, MonthConstants.MAY, 2001), new Double(1.6107));
        t1.add(new Day(11, MonthConstants.MAY, 2001), new Double(1.6209));
        t1.add(new Day(14, MonthConstants.MAY, 2001), new Double(1.6228));
        t1.add(new Day(15, MonthConstants.MAY, 2001), new Double(1.6184));
        t1.add(new Day(16, MonthConstants.MAY, 2001), new Double(1.6167));
        t1.add(new Day(17, MonthConstants.MAY, 2001), new Double(1.6223));
        t1.add(new Day(18, MonthConstants.MAY, 2001), new Double(1.6305));
        t1.add(new Day(21, MonthConstants.MAY, 2001), new Double(1.6420));
        t1.add(new Day(22, MonthConstants.MAY, 2001), new Double(1.6484));
        t1.add(new Day(23, MonthConstants.MAY, 2001), new Double(1.6547));
        t1.add(new Day(24, MonthConstants.MAY, 2001), new Double(1.6444));
        t1.add(new Day(25, MonthConstants.MAY, 2001), new Double(1.6577));
        t1.add(new Day(29, MonthConstants.MAY, 2001), new Double(1.6606));
        t1.add(new Day(30, MonthConstants.MAY, 2001), new Double(1.6604));
        t1.add(new Day(31, MonthConstants.MAY, 2001), new Double(1.6772));
        t1.add(new Day(1, MonthConstants.JUNE, 2001), new Double(1.6717));
        t1.add(new Day(4, MonthConstants.JUNE, 2001), new Double(1.6685));
        t1.add(new Day(5, MonthConstants.JUNE, 2001), new Double(1.6621));
        t1.add(new Day(6, MonthConstants.JUNE, 2001), new Double(1.6460));
        t1.add(new Day(7, MonthConstants.JUNE, 2001), new Double(1.6333));
        t1.add(new Day(8, MonthConstants.JUNE, 2001), new Double(1.6265));
        t1.add(new Day(11, MonthConstants.JUNE, 2001), new Double(1.6311));
        t1.add(new Day(12, MonthConstants.JUNE, 2001), new Double(1.6238));
        t1.add(new Day(13, MonthConstants.JUNE, 2001), new Double(1.6300));
        t1.add(new Day(14, MonthConstants.JUNE, 2001), new Double(1.6289));
        t1.add(new Day(15, MonthConstants.JUNE, 2001), new Double(1.6276));
        t1.add(new Day(18, MonthConstants.JUNE, 2001), new Double(1.6299));
        t1.add(new Day(19, MonthConstants.JUNE, 2001), new Double(1.6353));
        t1.add(new Day(20, MonthConstants.JUNE, 2001), new Double(1.6378));
        t1.add(new Day(21, MonthConstants.JUNE, 2001), new Double(1.6567));
        t1.add(new Day(22, MonthConstants.JUNE, 2001), new Double(1.6523));
        t1.add(new Day(25, MonthConstants.JUNE, 2001), new Double(1.6418));
        t1.add(new Day(26, MonthConstants.JUNE, 2001), new Double(1.6429));
        t1.add(new Day(27, MonthConstants.JUNE, 2001), new Double(1.6439));
        t1.add(new Day(28, MonthConstants.JUNE, 2001), new Double(1.6605));
        t1.add(new Day(29, MonthConstants.JUNE, 2001), new Double(1.6599));
        t1.add(new Day(2, MonthConstants.JULY, 2001), new Double(1.6727));
        t1.add(new Day(3, MonthConstants.JULY, 2001), new Double(1.6620));
        t1.add(new Day(4, MonthConstants.JULY, 2001), new Double(1.6628));
        t1.add(new Day(5, MonthConstants.JULY, 2001), new Double(1.6730));
        t1.add(new Day(6, MonthConstants.JULY, 2001), new Double(1.6649));
        t1.add(new Day(9, MonthConstants.JULY, 2001), new Double(1.6603));
        t1.add(new Day(10, MonthConstants.JULY, 2001), new Double(1.6489));
        t1.add(new Day(11, MonthConstants.JULY, 2001), new Double(1.6421));
        t1.add(new Day(12, MonthConstants.JULY, 2001), new Double(1.6498));
        t1.add(new Day(13, MonthConstants.JULY, 2001), new Double(1.6447));
        t1.add(new Day(16, MonthConstants.JULY, 2001), new Double(1.6373));
        t1.add(new Day(17, MonthConstants.JULY, 2001), new Double(1.6443));
        t1.add(new Day(18, MonthConstants.JULY, 2001), new Double(1.6246));
        t1.add(new Day(19, MonthConstants.JULY, 2001), new Double(1.6295));
        t1.add(new Day(20, MonthConstants.JULY, 2001), new Double(1.6362));
        t1.add(new Day(23, MonthConstants.JULY, 2001), new Double(1.6348));
        t1.add(new Day(24, MonthConstants.JULY, 2001), new Double(1.6242));
        t1.add(new Day(25, MonthConstants.JULY, 2001), new Double(1.6241));
        t1.add(new Day(26, MonthConstants.JULY, 2001), new Double(1.6281));
        t1.add(new Day(27, MonthConstants.JULY, 2001), new Double(1.6296));
        t1.add(new Day(30, MonthConstants.JULY, 2001), new Double(1.6279));
        t1.add(new Day(31, MonthConstants.JULY, 2001), new Double(1.6300));
        t1.add(new Day(1, MonthConstants.AUGUST, 2001), new Double(1.6290));
        t1.add(new Day(2, MonthConstants.AUGUST, 2001), new Double(1.6237));
        t1.add(new Day(3, MonthConstants.AUGUST, 2001), new Double(1.6138));
        t1.add(new Day(6, MonthConstants.AUGUST, 2001), new Double(1.6121));
        t1.add(new Day(7, MonthConstants.AUGUST, 2001), new Double(1.6170));
        t1.add(new Day(8, MonthConstants.AUGUST, 2001), new Double(1.6135));
        t1.add(new Day(9, MonthConstants.AUGUST, 2001), new Double(1.5996));
        t1.add(new Day(10, MonthConstants.AUGUST, 2001), new Double(1.5931));
        t1.add(new Day(13, MonthConstants.AUGUST, 2001), new Double(1.5828));
        t1.add(new Day(14, MonthConstants.AUGUST, 2001), new Double(1.5824));
        t1.add(new Day(15, MonthConstants.AUGUST, 2001), new Double(1.5783));
        t1.add(new Day(16, MonthConstants.AUGUST, 2001), new Double(1.5810));
        t1.add(new Day(17, MonthConstants.AUGUST, 2001), new Double(1.5761));
        t1.add(new Day(20, MonthConstants.AUGUST, 2001), new Double(1.5831));
        t1.add(new Day(21, MonthConstants.AUGUST, 2001), new Double(1.5870));
        t1.add(new Day(22, MonthConstants.AUGUST, 2001), new Double(1.5808));
        t1.add(new Day(23, MonthConstants.AUGUST, 2001), new Double(1.5845));
        t1.add(new Day(24, MonthConstants.AUGUST, 2001), new Double(1.5844));
        t1.add(new Day(28, MonthConstants.AUGUST, 2001), new Double(1.5924));
        t1.add(new Day(29, MonthConstants.AUGUST, 2001), new Double(1.5950));
        t1.add(new Day(30, MonthConstants.AUGUST, 2001), new Double(1.5941));
        t1.add(new Day(31, MonthConstants.AUGUST, 2001), new Double(1.5968));
        t1.add(new Day(3, MonthConstants.SEPTEMBER, 2001), new Double(1.6020));
        t1.add(new Day(4, MonthConstants.SEPTEMBER, 2001), new Double(1.6236));
        t1.add(new Day(5, MonthConstants.SEPTEMBER, 2001), new Double(1.6352));
        t1.add(new Day(6, MonthConstants.SEPTEMBER, 2001), new Double(1.6302));
        t1.add(new Day(7, MonthConstants.SEPTEMBER, 2001), new Double(1.6180));
        t1.add(new Day(10, MonthConstants.SEPTEMBER, 2001), new Double(1.6218));
        t1.add(new Day(11, MonthConstants.SEPTEMBER, 2001), new Double(1.6182));
        t1.add(new Day(12, MonthConstants.SEPTEMBER, 2001), new Double(1.6157));
        t1.add(new Day(13, MonthConstants.SEPTEMBER, 2001), new Double(1.6171));
        t1.add(new Day(14, MonthConstants.SEPTEMBER, 2001), new Double(1.5960));
        t1.add(new Day(17, MonthConstants.SEPTEMBER, 2001), new Double(1.5952));
        t1.add(new Day(18, MonthConstants.SEPTEMBER, 2001), new Double(1.5863));
        t1.add(new Day(19, MonthConstants.SEPTEMBER, 2001), new Double(1.5790));
        t1.add(new Day(20, MonthConstants.SEPTEMBER, 2001), new Double(1.5811));
        t1.add(new Day(21, MonthConstants.SEPTEMBER, 2001), new Double(1.5917));
        t1.add(new Day(24, MonthConstants.SEPTEMBER, 2001), new Double(1.6005));
        t1.add(new Day(25, MonthConstants.SEPTEMBER, 2001), new Double(1.5915));
        t1.add(new Day(26, MonthConstants.SEPTEMBER, 2001), new Double(1.6012));
        t1.add(new Day(27, MonthConstants.SEPTEMBER, 2001), new Double(1.6032));
        t1.add(new Day(28, MonthConstants.SEPTEMBER, 2001), new Double(1.6133));
        t1.add(new Day(1, MonthConstants.OCTOBER, 2001), new Double(1.6147));
        t1.add(new Day(2, MonthConstants.OCTOBER, 2001), new Double(1.6002));
        t1.add(new Day(3, MonthConstants.OCTOBER, 2001), new Double(1.6041));
        t1.add(new Day(4, MonthConstants.OCTOBER, 2001), new Double(1.6172));
        t1.add(new Day(5, MonthConstants.OCTOBER, 2001), new Double(1.6121));
        t1.add(new Day(8, MonthConstants.OCTOBER, 2001), new Double(1.6044));
        t1.add(new Day(9, MonthConstants.OCTOBER, 2001), new Double(1.5974));
        t1.add(new Day(10, MonthConstants.OCTOBER, 2001), new Double(1.5915));
        t1.add(new Day(11, MonthConstants.OCTOBER, 2001), new Double(1.6022));
        t1.add(new Day(12, MonthConstants.OCTOBER, 2001), new Double(1.6014));
        t1.add(new Day(15, MonthConstants.OCTOBER, 2001), new Double(1.5942));
        t1.add(new Day(16, MonthConstants.OCTOBER, 2001), new Double(1.5925));
        t1.add(new Day(17, MonthConstants.OCTOBER, 2001), new Double(1.6007));
        t1.add(new Day(18, MonthConstants.OCTOBER, 2001), new Double(1.6000));
        t1.add(new Day(19, MonthConstants.OCTOBER, 2001), new Double(1.6030));
        t1.add(new Day(22, MonthConstants.OCTOBER, 2001), new Double(1.6014));
        t1.add(new Day(23, MonthConstants.OCTOBER, 2001), new Double(1.5995));
        t1.add(new Day(24, MonthConstants.OCTOBER, 2001), new Double(1.5951));
        t1.add(new Day(25, MonthConstants.OCTOBER, 2001), new Double(1.5953));
        t1.add(new Day(26, MonthConstants.OCTOBER, 2001), new Double(1.6057));
        t1.add(new Day(29, MonthConstants.OCTOBER, 2001), new Double(1.6051));
        t1.add(new Day(30, MonthConstants.OCTOBER, 2001), new Double(1.6027));
        t1.add(new Day(31, MonthConstants.OCTOBER, 2001), new Double(1.6144));
        t1.add(new Day(1, MonthConstants.NOVEMBER, 2001), new Double(1.6139));
        t1.add(new Day(2, MonthConstants.NOVEMBER, 2001), new Double(1.6189));
        t1.add(new Day(5, MonthConstants.NOVEMBER, 2001), new Double(1.6248));
        t1.add(new Day(6, MonthConstants.NOVEMBER, 2001), new Double(1.6267));
        t1.add(new Day(7, MonthConstants.NOVEMBER, 2001), new Double(1.6281));
        t1.add(new Day(8, MonthConstants.NOVEMBER, 2001), new Double(1.6310));
        t1.add(new Day(9, MonthConstants.NOVEMBER, 2001), new Double(1.6313));
        t1.add(new Day(12, MonthConstants.NOVEMBER, 2001), new Double(1.6272));
        t1.add(new Day(13, MonthConstants.NOVEMBER, 2001), new Double(1.6361));
        t1.add(new Day(14, MonthConstants.NOVEMBER, 2001), new Double(1.6323));
        t1.add(new Day(15, MonthConstants.NOVEMBER, 2001), new Double(1.6252));
        t1.add(new Day(16, MonthConstants.NOVEMBER, 2001), new Double(1.6141));
        t1.add(new Day(19, MonthConstants.NOVEMBER, 2001), new Double(1.6086));
        t1.add(new Day(20, MonthConstants.NOVEMBER, 2001), new Double(1.6055));
        t1.add(new Day(21, MonthConstants.NOVEMBER, 2001), new Double(1.6132));
        t1.add(new Day(22, MonthConstants.NOVEMBER, 2001), new Double(1.6074));
        t1.add(new Day(23, MonthConstants.NOVEMBER, 2001), new Double(1.6065));
        t1.add(new Day(26, MonthConstants.NOVEMBER, 2001), new Double(1.6061));
        t1.add(new Day(27, MonthConstants.NOVEMBER, 2001), new Double(1.6039));
        t1.add(new Day(28, MonthConstants.NOVEMBER, 2001), new Double(1.6069));
        t1.add(new Day(29, MonthConstants.NOVEMBER, 2001), new Double(1.6044));
        t1.add(new Day(30, MonthConstants.NOVEMBER, 2001), new Double(1.5928));
    } catch (Exception e) {
        System.err.println(e.getMessage());
    }
    return t1;
}

From source file:com.jonas.testing.jfreechart.demos.DemoDatasetFactory.java

/**
 * Returns a time series of the daily EUR/GBP exchange rates in 2001 (to date), for use in
 * the JFreeChart demonstration application.
 * <P>// w w  w  .  j  a v a  2 s  . c om
 * You wouldn't normally create a time series in this way.  Typically, values would
 * be read from a database.
 *
 * @return a sample time series.
 */
public static TimeSeries createJPYTimeSeries() {

    final TimeSeries t1 = new TimeSeries("JPY/GBP Exchange Rate");
    try {
        t1.add(new Day(2, MonthConstants.JANUARY, 2001), new Double(171.2612));
        t1.add(new Day(3, MonthConstants.JANUARY, 2001), new Double(172.1076));
        t1.add(new Day(4, MonthConstants.JANUARY, 2001), new Double(172.3485));
        t1.add(new Day(5, MonthConstants.JANUARY, 2001), new Double(173.7023));
        t1.add(new Day(8, MonthConstants.JANUARY, 2001), new Double(174.1253));
        t1.add(new Day(9, MonthConstants.JANUARY, 2001), new Double(173.6386));
        t1.add(new Day(10, MonthConstants.JANUARY, 2001), new Double(173.2623));
        t1.add(new Day(11, MonthConstants.JANUARY, 2001), new Double(175.7319));
        t1.add(new Day(12, MonthConstants.JANUARY, 2001), new Double(174.2442));
        t1.add(new Day(15, MonthConstants.JANUARY, 2001), new Double(175.7583));
        t1.add(new Day(16, MonthConstants.JANUARY, 2001), new Double(173.0719));
        t1.add(new Day(17, MonthConstants.JANUARY, 2001), new Double(173.0805));
        t1.add(new Day(18, MonthConstants.JANUARY, 2001), new Double(174.1975));
        t1.add(new Day(19, MonthConstants.JANUARY, 2001), new Double(172.3138));
        t1.add(new Day(22, MonthConstants.JANUARY, 2001), new Double(170.5016));
        t1.add(new Day(23, MonthConstants.JANUARY, 2001), new Double(172.1836));
        t1.add(new Day(24, MonthConstants.JANUARY, 2001), new Double(172.2154));
        t1.add(new Day(25, MonthConstants.JANUARY, 2001), new Double(170.1515));
        t1.add(new Day(26, MonthConstants.JANUARY, 2001), new Double(170.3728));
        t1.add(new Day(29, MonthConstants.JANUARY, 2001), new Double(170.2911));
        t1.add(new Day(30, MonthConstants.JANUARY, 2001), new Double(170.3995));
        t1.add(new Day(31, MonthConstants.JANUARY, 2001), new Double(169.9110));
        t1.add(new Day(1, MonthConstants.FEBRUARY, 2001), new Double(170.4084));
        t1.add(new Day(2, MonthConstants.FEBRUARY, 2001), new Double(169.8845));
        t1.add(new Day(5, MonthConstants.FEBRUARY, 2001), new Double(169.5120));
        t1.add(new Day(6, MonthConstants.FEBRUARY, 2001), new Double(167.9429));
        t1.add(new Day(7, MonthConstants.FEBRUARY, 2001), new Double(169.6096));
        t1.add(new Day(8, MonthConstants.FEBRUARY, 2001), new Double(167.8282));
        t1.add(new Day(9, MonthConstants.FEBRUARY, 2001), new Double(170.1427));
        t1.add(new Day(12, MonthConstants.FEBRUARY, 2001), new Double(170.8250));
        t1.add(new Day(13, MonthConstants.FEBRUARY, 2001), new Double(170.4005));
        t1.add(new Day(14, MonthConstants.FEBRUARY, 2001), new Double(170.1455));
        t1.add(new Day(15, MonthConstants.FEBRUARY, 2001), new Double(167.6925));
        t1.add(new Day(16, MonthConstants.FEBRUARY, 2001), new Double(167.6133));
        t1.add(new Day(19, MonthConstants.FEBRUARY, 2001), new Double(167.7099));
        t1.add(new Day(20, MonthConstants.FEBRUARY, 2001), new Double(166.9004));
        t1.add(new Day(21, MonthConstants.FEBRUARY, 2001), new Double(168.4231));
        t1.add(new Day(22, MonthConstants.FEBRUARY, 2001), new Double(168.3292));
        t1.add(new Day(23, MonthConstants.FEBRUARY, 2001), new Double(168.6142));
        t1.add(new Day(26, MonthConstants.FEBRUARY, 2001), new Double(168.2608));
        t1.add(new Day(27, MonthConstants.FEBRUARY, 2001), new Double(167.6325));
        t1.add(new Day(28, MonthConstants.FEBRUARY, 2001), new Double(169.1728));
        t1.add(new Day(1, MonthConstants.MARCH, 2001), new Double(170.5199));
        t1.add(new Day(2, MonthConstants.MARCH, 2001), new Double(175.5211));
        t1.add(new Day(5, MonthConstants.MARCH, 2001), new Double(174.9543));
        t1.add(new Day(6, MonthConstants.MARCH, 2001), new Double(174.4053));
        t1.add(new Day(7, MonthConstants.MARCH, 2001), new Double(175.1675));
        t1.add(new Day(8, MonthConstants.MARCH, 2001), new Double(175.7501));
        t1.add(new Day(9, MonthConstants.MARCH, 2001), new Double(175.5956));
        t1.add(new Day(12, MonthConstants.MARCH, 2001), new Double(176.6677));
        t1.add(new Day(13, MonthConstants.MARCH, 2001), new Double(174.4282));
        t1.add(new Day(14, MonthConstants.MARCH, 2001), new Double(175.1140));
        t1.add(new Day(15, MonthConstants.MARCH, 2001), new Double(175.8914));
        t1.add(new Day(16, MonthConstants.MARCH, 2001), new Double(175.7124));
        t1.add(new Day(19, MonthConstants.MARCH, 2001), new Double(174.2307));
        t1.add(new Day(20, MonthConstants.MARCH, 2001), new Double(175.0382));
        t1.add(new Day(21, MonthConstants.MARCH, 2001), new Double(176.1183));
        t1.add(new Day(22, MonthConstants.MARCH, 2001), new Double(176.2646));
        t1.add(new Day(23, MonthConstants.MARCH, 2001), new Double(175.3608));
        t1.add(new Day(26, MonthConstants.MARCH, 2001), new Double(176.5805));
        t1.add(new Day(27, MonthConstants.MARCH, 2001), new Double(176.8495));
        t1.add(new Day(28, MonthConstants.MARCH, 2001), new Double(174.7895));
        t1.add(new Day(29, MonthConstants.MARCH, 2001), new Double(176.6957));
        t1.add(new Day(30, MonthConstants.MARCH, 2001), new Double(178.1106));
        t1.add(new Day(2, MonthConstants.APRIL, 2001), new Double(179.5654));
        t1.add(new Day(3, MonthConstants.APRIL, 2001), new Double(179.7021));
        t1.add(new Day(4, MonthConstants.APRIL, 2001), new Double(179.5065));
        t1.add(new Day(5, MonthConstants.APRIL, 2001), new Double(177.9874));
        t1.add(new Day(6, MonthConstants.APRIL, 2001), new Double(178.3541));
        t1.add(new Day(9, MonthConstants.APRIL, 2001), new Double(181.0301));
        t1.add(new Day(10, MonthConstants.APRIL, 2001), new Double(179.0357));
        t1.add(new Day(11, MonthConstants.APRIL, 2001), new Double(178.8478));
        t1.add(new Day(12, MonthConstants.APRIL, 2001), new Double(177.7927));
        t1.add(new Day(17, MonthConstants.APRIL, 2001), new Double(177.1644));
        t1.add(new Day(18, MonthConstants.APRIL, 2001), new Double(174.1972));
        t1.add(new Day(19, MonthConstants.APRIL, 2001), new Double(174.9370));
        t1.add(new Day(20, MonthConstants.APRIL, 2001), new Double(176.8555));
        t1.add(new Day(23, MonthConstants.APRIL, 2001), new Double(175.3433));
        t1.add(new Day(24, MonthConstants.APRIL, 2001), new Double(175.4792));
        t1.add(new Day(25, MonthConstants.APRIL, 2001), new Double(175.7154));
        t1.add(new Day(26, MonthConstants.APRIL, 2001), new Double(176.1797));
        t1.add(new Day(27, MonthConstants.APRIL, 2001), new Double(177.7074));
        t1.add(new Day(30, MonthConstants.APRIL, 2001), new Double(176.8592));
        t1.add(new Day(1, MonthConstants.MAY, 2001), new Double(174.9104));
        t1.add(new Day(2, MonthConstants.MAY, 2001), new Double(174.8992));
        t1.add(new Day(3, MonthConstants.MAY, 2001), new Double(173.4239));
        t1.add(new Day(4, MonthConstants.MAY, 2001), new Double(173.9663));
        t1.add(new Day(8, MonthConstants.MAY, 2001), new Double(174.4871));
        t1.add(new Day(9, MonthConstants.MAY, 2001), new Double(173.6851));
        t1.add(new Day(10, MonthConstants.MAY, 2001), new Double(174.5957));
        t1.add(new Day(11, MonthConstants.MAY, 2001), new Double(173.6254));
        t1.add(new Day(14, MonthConstants.MAY, 2001), new Double(174.7913));
        t1.add(new Day(15, MonthConstants.MAY, 2001), new Double(175.3932));
        t1.add(new Day(16, MonthConstants.MAY, 2001), new Double(176.7291));
        t1.add(new Day(17, MonthConstants.MAY, 2001), new Double(175.8551));
        t1.add(new Day(18, MonthConstants.MAY, 2001), new Double(176.8558));
        t1.add(new Day(21, MonthConstants.MAY, 2001), new Double(176.6443));
        t1.add(new Day(22, MonthConstants.MAY, 2001), new Double(175.1953));
        t1.add(new Day(23, MonthConstants.MAY, 2001), new Double(171.6117));
        t1.add(new Day(24, MonthConstants.MAY, 2001), new Double(169.0407));
        t1.add(new Day(25, MonthConstants.MAY, 2001), new Double(171.3975));
        t1.add(new Day(29, MonthConstants.MAY, 2001), new Double(170.2811));
        t1.add(new Day(30, MonthConstants.MAY, 2001), new Double(171.2154));
        t1.add(new Day(31, MonthConstants.MAY, 2001), new Double(168.6795));
        t1.add(new Day(1, MonthConstants.JUNE, 2001), new Double(168.2339));
        t1.add(new Day(4, MonthConstants.JUNE, 2001), new Double(169.2090));
        t1.add(new Day(5, MonthConstants.JUNE, 2001), new Double(169.4501));
        t1.add(new Day(6, MonthConstants.JUNE, 2001), new Double(167.8414));
        t1.add(new Day(7, MonthConstants.JUNE, 2001), new Double(166.6042));
        t1.add(new Day(8, MonthConstants.JUNE, 2001), new Double(166.5005));
        t1.add(new Day(11, MonthConstants.JUNE, 2001), new Double(167.2925));
        t1.add(new Day(12, MonthConstants.JUNE, 2001), new Double(168.1171));
        t1.add(new Day(13, MonthConstants.JUNE, 2001), new Double(168.9091));
        t1.add(new Day(14, MonthConstants.JUNE, 2001), new Double(169.8863));
        t1.add(new Day(15, MonthConstants.JUNE, 2001), new Double(171.5254));
        t1.add(new Day(18, MonthConstants.JUNE, 2001), new Double(172.6955));
        t1.add(new Day(19, MonthConstants.JUNE, 2001), new Double(172.3427));
        t1.add(new Day(20, MonthConstants.JUNE, 2001), new Double(172.0421));
        t1.add(new Day(21, MonthConstants.JUNE, 2001), new Double(175.9830));
        t1.add(new Day(22, MonthConstants.JUNE, 2001), new Double(175.5076));
        t1.add(new Day(25, MonthConstants.JUNE, 2001), new Double(175.1080));
        t1.add(new Day(26, MonthConstants.JUNE, 2001), new Double(175.5043));
        t1.add(new Day(27, MonthConstants.JUNE, 2001), new Double(175.3712));
        t1.add(new Day(28, MonthConstants.JUNE, 2001), new Double(175.9575));
        t1.add(new Day(29, MonthConstants.JUNE, 2001), new Double(175.4734));
        t1.add(new Day(2, MonthConstants.JULY, 2001), new Double(175.9908));
        t1.add(new Day(3, MonthConstants.JULY, 2001), new Double(175.2386));
        t1.add(new Day(4, MonthConstants.JULY, 2001), new Double(175.0405));
        t1.add(new Day(5, MonthConstants.JULY, 2001), new Double(175.9451));
        t1.add(new Day(6, MonthConstants.JULY, 2001), new Double(177.3383));
        t1.add(new Day(9, MonthConstants.JULY, 2001), new Double(176.6965));
        t1.add(new Day(10, MonthConstants.JULY, 2001), new Double(177.0476));
        t1.add(new Day(11, MonthConstants.JULY, 2001), new Double(175.6136));
        t1.add(new Day(12, MonthConstants.JULY, 2001), new Double(174.1736));
        t1.add(new Day(13, MonthConstants.JULY, 2001), new Double(174.8619));
        t1.add(new Day(16, MonthConstants.JULY, 2001), new Double(175.4915));
        t1.add(new Day(17, MonthConstants.JULY, 2001), new Double(175.1916));
        t1.add(new Day(18, MonthConstants.JULY, 2001), new Double(176.0599));
        t1.add(new Day(19, MonthConstants.JULY, 2001), new Double(174.8244));
        t1.add(new Day(20, MonthConstants.JULY, 2001), new Double(175.8257));
        t1.add(new Day(23, MonthConstants.JULY, 2001), new Double(176.2682));
        t1.add(new Day(24, MonthConstants.JULY, 2001), new Double(176.1794));
        t1.add(new Day(25, MonthConstants.JULY, 2001), new Double(176.4514));
        t1.add(new Day(26, MonthConstants.JULY, 2001), new Double(176.7673));
        t1.add(new Day(27, MonthConstants.JULY, 2001), new Double(176.1476));
        t1.add(new Day(30, MonthConstants.JULY, 2001), new Double(178.3029));
        t1.add(new Day(31, MonthConstants.JULY, 2001), new Double(178.0895));
        t1.add(new Day(1, MonthConstants.AUGUST, 2001), new Double(178.6438));
        t1.add(new Day(2, MonthConstants.AUGUST, 2001), new Double(177.1364));
        t1.add(new Day(3, MonthConstants.AUGUST, 2001), new Double(176.4042));
        t1.add(new Day(6, MonthConstants.AUGUST, 2001), new Double(175.7999));
        t1.add(new Day(7, MonthConstants.AUGUST, 2001), new Double(175.5131));
        t1.add(new Day(8, MonthConstants.AUGUST, 2001), new Double(173.9804));
        t1.add(new Day(9, MonthConstants.AUGUST, 2001), new Double(174.9459));
        t1.add(new Day(10, MonthConstants.AUGUST, 2001), new Double(173.8883));
        t1.add(new Day(13, MonthConstants.AUGUST, 2001), new Double(173.8253));
        t1.add(new Day(14, MonthConstants.AUGUST, 2001), new Double(173.0352));
        t1.add(new Day(15, MonthConstants.AUGUST, 2001), new Double(172.4666));
        t1.add(new Day(16, MonthConstants.AUGUST, 2001), new Double(173.4173));
        t1.add(new Day(17, MonthConstants.AUGUST, 2001), new Double(173.6289));
        t1.add(new Day(20, MonthConstants.AUGUST, 2001), new Double(174.3824));
        t1.add(new Day(21, MonthConstants.AUGUST, 2001), new Double(173.5063));
        t1.add(new Day(22, MonthConstants.AUGUST, 2001), new Double(174.3372));
        t1.add(new Day(23, MonthConstants.AUGUST, 2001), new Double(173.8620));
        t1.add(new Day(24, MonthConstants.AUGUST, 2001), new Double(173.5825));
        t1.add(new Day(28, MonthConstants.AUGUST, 2001), new Double(174.7664));
        t1.add(new Day(29, MonthConstants.AUGUST, 2001), new Double(173.5166));
        t1.add(new Day(30, MonthConstants.AUGUST, 2001), new Double(173.8555));
        t1.add(new Day(31, MonthConstants.AUGUST, 2001), new Double(172.6675));
        t1.add(new Day(3, MonthConstants.SEPTEMBER, 2001), new Double(172.3986));
        t1.add(new Day(4, MonthConstants.SEPTEMBER, 2001), new Double(171.8860));
        t1.add(new Day(5, MonthConstants.SEPTEMBER, 2001), new Double(174.8640));
        t1.add(new Day(6, MonthConstants.SEPTEMBER, 2001), new Double(176.1399));
        t1.add(new Day(7, MonthConstants.SEPTEMBER, 2001), new Double(175.7110));
        t1.add(new Day(10, MonthConstants.SEPTEMBER, 2001), new Double(176.3085));
        t1.add(new Day(11, MonthConstants.SEPTEMBER, 2001), new Double(174.6263));
        t1.add(new Day(12, MonthConstants.SEPTEMBER, 2001), new Double(174.8058));
        t1.add(new Day(13, MonthConstants.SEPTEMBER, 2001), new Double(174.8257));
        t1.add(new Day(14, MonthConstants.SEPTEMBER, 2001), new Double(172.3107));
        t1.add(new Day(17, MonthConstants.SEPTEMBER, 2001), new Double(172.5397));
        t1.add(new Day(18, MonthConstants.SEPTEMBER, 2001), new Double(171.7004));
        t1.add(new Day(19, MonthConstants.SEPTEMBER, 2001), new Double(172.1289));
        t1.add(new Day(20, MonthConstants.SEPTEMBER, 2001), new Double(170.3143));
        t1.add(new Day(21, MonthConstants.SEPTEMBER, 2001), new Double(169.9737));
        t1.add(new Day(24, MonthConstants.SEPTEMBER, 2001), new Double(172.0319));
        t1.add(new Day(25, MonthConstants.SEPTEMBER, 2001), new Double(172.5516));
        t1.add(new Day(26, MonthConstants.SEPTEMBER, 2001), new Double(173.8612));
        t1.add(new Day(27, MonthConstants.SEPTEMBER, 2001), new Double(176.5408));
        t1.add(new Day(28, MonthConstants.SEPTEMBER, 2001), new Double(175.1092));
        t1.add(new Day(1, MonthConstants.OCTOBER, 2001), new Double(177.6150));
        t1.add(new Day(2, MonthConstants.OCTOBER, 2001), new Double(177.1049));
        t1.add(new Day(3, MonthConstants.OCTOBER, 2001), new Double(178.2525));
        t1.add(new Day(4, MonthConstants.OCTOBER, 2001), new Double(178.0819));
        t1.add(new Day(5, MonthConstants.OCTOBER, 2001), new Double(178.1643));
        t1.add(new Day(8, MonthConstants.OCTOBER, 2001), new Double(176.6654));
        t1.add(new Day(9, MonthConstants.OCTOBER, 2001), new Double(176.0773));
        t1.add(new Day(10, MonthConstants.OCTOBER, 2001), new Double(174.4806));
        t1.add(new Day(11, MonthConstants.OCTOBER, 2001), new Double(175.1855));
        t1.add(new Day(12, MonthConstants.OCTOBER, 2001), new Double(176.1221));
        t1.add(new Day(15, MonthConstants.OCTOBER, 2001), new Double(175.1425));
        t1.add(new Day(16, MonthConstants.OCTOBER, 2001), new Double(175.4683));
        t1.add(new Day(17, MonthConstants.OCTOBER, 2001), new Double(175.4936));
        t1.add(new Day(18, MonthConstants.OCTOBER, 2001), new Double(174.8134));
        t1.add(new Day(19, MonthConstants.OCTOBER, 2001), new Double(174.4492));
        t1.add(new Day(22, MonthConstants.OCTOBER, 2001), new Double(174.1978));
        t1.add(new Day(23, MonthConstants.OCTOBER, 2001), new Double(174.8360));
        t1.add(new Day(24, MonthConstants.OCTOBER, 2001), new Double(174.9378));
        t1.add(new Day(25, MonthConstants.OCTOBER, 2001), new Double(175.4385));
        t1.add(new Day(26, MonthConstants.OCTOBER, 2001), new Double(176.4207));
        t1.add(new Day(29, MonthConstants.OCTOBER, 2001), new Double(177.0540));
        t1.add(new Day(30, MonthConstants.OCTOBER, 2001), new Double(177.1128));
        t1.add(new Day(31, MonthConstants.OCTOBER, 2001), new Double(177.9818));
        t1.add(new Day(1, MonthConstants.NOVEMBER, 2001), new Double(177.9595));
        t1.add(new Day(2, MonthConstants.NOVEMBER, 2001), new Double(177.9251));
        t1.add(new Day(5, MonthConstants.NOVEMBER, 2001), new Double(177.2003));
        t1.add(new Day(6, MonthConstants.NOVEMBER, 2001), new Double(176.6169));
        t1.add(new Day(7, MonthConstants.NOVEMBER, 2001), new Double(177.3191));
        t1.add(new Day(8, MonthConstants.NOVEMBER, 2001), new Double(175.7736));
        t1.add(new Day(9, MonthConstants.NOVEMBER, 2001), new Double(175.2104));
        t1.add(new Day(12, MonthConstants.NOVEMBER, 2001), new Double(175.0749));
        t1.add(new Day(13, MonthConstants.NOVEMBER, 2001), new Double(175.2402));
        t1.add(new Day(14, MonthConstants.NOVEMBER, 2001), new Double(175.3503));
        t1.add(new Day(15, MonthConstants.NOVEMBER, 2001), new Double(175.2810));
        t1.add(new Day(16, MonthConstants.NOVEMBER, 2001), new Double(175.4077));
        t1.add(new Day(19, MonthConstants.NOVEMBER, 2001), new Double(174.3462));
        t1.add(new Day(20, MonthConstants.NOVEMBER, 2001), new Double(173.8177));
        t1.add(new Day(21, MonthConstants.NOVEMBER, 2001), new Double(174.0356));
        t1.add(new Day(22, MonthConstants.NOVEMBER, 2001), new Double(175.0548));
        t1.add(new Day(23, MonthConstants.NOVEMBER, 2001), new Double(175.2207));
        t1.add(new Day(26, MonthConstants.NOVEMBER, 2001), new Double(175.4978));
        t1.add(new Day(27, MonthConstants.NOVEMBER, 2001), new Double(175.2191));
        t1.add(new Day(28, MonthConstants.NOVEMBER, 2001), new Double(175.4236));
        t1.add(new Day(29, MonthConstants.NOVEMBER, 2001), new Double(176.2304));
        t1.add(new Day(30, MonthConstants.NOVEMBER, 2001), new Double(175.6119));
    } catch (Exception e) {
        System.err.println(e.getMessage());
    }
    return t1;
}