List of usage examples for org.jfree.data.time TimeSeries add
public void add(RegularTimePeriod period, Number value)
From source file:org.jfree.data.time.TimeSeriesCollectionTest.java
/** * This method provides a check for the bounds calculated using the * {@link DatasetUtilities#findDomainBounds(org.jfree.data.xy.XYDataset, * java.util.List, boolean)} method.//from w ww .j av a 2 s .c o m */ @Test public void testFindDomainBounds() { TimeSeriesCollection dataset = new TimeSeriesCollection(); List visibleSeriesKeys = new java.util.ArrayList(); Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true); assertNull(r); TimeSeries s1 = new TimeSeries("S1"); dataset.addSeries(s1); visibleSeriesKeys.add("S1"); r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true); assertNull(r); // store the current time zone TimeZone saved = TimeZone.getDefault(); TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris")); s1.add(new Year(2008), 8.0); r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true); assertEquals(1199142000000.0, r.getLowerBound(), EPSILON); assertEquals(1230764399999.0, r.getUpperBound(), EPSILON); TimeSeries s2 = new TimeSeries("S2"); dataset.addSeries(s2); s2.add(new Year(2009), 9.0); s2.add(new Year(2010), 10.0); r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true); assertEquals(1199142000000.0, r.getLowerBound(), EPSILON); assertEquals(1230764399999.0, r.getUpperBound(), EPSILON); visibleSeriesKeys.add("S2"); r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true); assertEquals(1199142000000.0, r.getLowerBound(), EPSILON); assertEquals(1293836399999.0, r.getUpperBound(), EPSILON); // restore the default time zone TimeZone.setDefault(saved); }
From source file:test.integ.be.fedict.performance.util.PerformanceResultDialog.java
private JFreeChart getPerformanceChart(int intervalSize, List<PerformanceData> performance, int expectedRevoked) { TimeSeries series = new TimeSeries("Success"); TimeSeries revokedSeries = new TimeSeries("Revoked"); TimeSeries failureSeries = new TimeSeries("Failures"); performance.remove(performance.size() - 1); if (performance.isEmpty()) { JOptionPane.showMessageDialog(null, "test did not run long enough"); return null; }/* w w w . j av a2 s .c o m*/ JFreeChart chart; int totalCount = 0; int totalRevoked = 0; int totalFailures = 0; for (PerformanceData performanceEntry : performance) { series.add(new Second(performanceEntry.getDate()), performanceEntry.getCount()); totalCount += performanceEntry.getCount(); revokedSeries.add(new Second(performanceEntry.getDate()), performanceEntry.getRevoked()); totalRevoked += performanceEntry.getRevoked(); failureSeries.add(new Second(performanceEntry.getDate()), performanceEntry.getFailures()); totalFailures += performanceEntry.getFailures(); } TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(series); dataset.addSeries(revokedSeries); dataset.addSeries(failureSeries); chart = ChartFactory.createTimeSeriesChart("eID Trust Service Performance History", "Time (interval size " + intervalSize + " msec)", "Number of XKMS requests", dataset, true, false, false); chart.addSubtitle(new TextTitle(performance.get(0).getDate().toString() + " - " + performance.get(performance.size() - 1).getDate().toString())); TextTitle info = new TextTitle("Total number of successful requests: " + totalCount); info.setTextAlignment(HorizontalAlignment.LEFT); info.setPosition(RectangleEdge.BOTTOM); chart.addSubtitle(info); TextTitle info2 = new TextTitle( "Total number of revoked: " + totalRevoked + " expected=" + expectedRevoked); info2.setPosition(RectangleEdge.BOTTOM); info2.setTextAlignment(HorizontalAlignment.LEFT); chart.addSubtitle(info2); TextTitle info3 = new TextTitle("Total number of failures: " + totalFailures); info3.setPosition(RectangleEdge.BOTTOM); info3.setTextAlignment(HorizontalAlignment.LEFT); chart.addSubtitle(info3); chart.setBackgroundPaint(Color.WHITE); XYPlot plot = chart.getXYPlot(); plot.setBackgroundPaint(Color.WHITE); DateAxis axis = (DateAxis) plot.getDomainAxis(); axis.setDateFormatOverride(new SimpleDateFormat("HH:mm:ss")); ValueAxis valueAxis = plot.getRangeAxis(); valueAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(); plot.setRangeGridlinePaint(Color.black); plot.setDomainGridlinePaint(Color.black); plot.setRenderer(renderer); return chart; }
From source file:wsattacker.plugin.dos.dosExtension.chart.ChartObject.java
private synchronized XYDataset createDatasetResponseTime(String type) { Map<Integer, LogEntryInterval> currentMap = null; String name = null;/* w ww .j a va 2 s . c o m*/ if (type.equals("tampered")) { currentMap = model.getMapLogEntryIntervalTampered(); name = "Mean Response Time Tampered Requests"; // Roundtrip Time } else if (type.equals("untampered")) { currentMap = model.getMapLogEntryIntervalUntampered(); name = "Mean Response Time Untampered Requests"; // Roundtrip Time } else if (type.equals("testprobe")) { currentMap = model.getMapLogEntryIntervalTestProbe(); name = "Mean Response Time Simulated 3rd Party Requests"; // Roundtrip // Time } else { System.out.println("Invalid type"); } Date currentDate; long currentMsTs; final TimeSeries series = new TimeSeries(name); if (currentMap != null) { for (Map.Entry<Integer, LogEntryInterval> log : currentMap.entrySet()) { // Create TS from model.startTime and log.getIntervalNumber(); currentMsTs = model.getTsAttackStart() + log.getValue().getIntervalNumber(); currentDate = new Date(currentMsTs); // System.out.println(name+" Sekunde"+log.getValue().getIntervalNumber()+" TS: "+currentMsTs+" time "+log.getValue().getMeanResponseTime()); series.add(new Second(currentDate), (log.getValue().getMeanResponseTime())); } } final TimeSeriesCollection dataset = new TimeSeriesCollection(series); dataset.setXPosition(TimePeriodAnchor.MIDDLE); return dataset; }
From source file:jgnash.ui.report.compiled.RunningAccountBalanceChart.java
private TimeSeriesCollection createTimeSeriesCollection(final Account account) { if (subAccountCheckBox.isSelected()) { LocalDate start = DateUtils.getFirstDayOfTheMonth(startDateField.getLocalDate()); LocalDate stop = DateUtils.getLastDayOfTheMonth(endDateField.getLocalDate()); List<LocalDate> list = DateUtils.getLastDayOfTheMonths(start, stop); TimeSeries t = new TimeSeries(rb.getString("Column.Month"), rb.getString("Column.Month"), rb.getString("Column.Balance")); // For every month, calculate the total amount for (LocalDate date : list) { LocalDate d = DateUtils.getLastDayOfTheMonth(date); // Get the total amount for the account and every sub accounts // for the specified date BigDecimal bd_TotalAmount = calculateTotal(d, account, account.getCurrencyNode()); // Include it in the graph t.add(new Month(DateUtils.asDate(date)), bd_TotalAmount); }/* w ww.ja v a 2 s . c om*/ return new TimeSeriesCollection(t); } List<LocalDate> list = Collections.emptyList(); int count = account.getTransactionCount(); if (count > 0) { final LocalDate start = account.getTransactionAt(0).getLocalDate(); final LocalDate stop = account.getTransactionAt(count - 1).getLocalDate(); list = DateUtils.getLastDayOfTheMonths(start, stop); } TimeSeries t = new TimeSeries(rb.getString("Column.Month"), rb.getString("Column.Month"), rb.getString("Column.Balance")); AccountType type = account.getAccountType(); for (final LocalDate date : list) { // get balance for the whole month LocalDate d = DateUtils.getLastDayOfTheMonth(date); BigDecimal balance = AccountBalanceDisplayManager.convertToSelectedBalanceMode(type, account.getBalance(d)); t.add(new Month(DateUtils.asDate(date)), balance); } return new TimeSeriesCollection(t); }
From source file:jgnash.ui.report.compiled.MonthlyAccountBalanceChart.java
private TimeSeriesCollection createTimeSeriesCollection(final Account account) { List<LocalDate> dates = Collections.emptyList(); if (subAccountCheckBox.isSelected()) { // Getting the dates to calculate final LocalDate start = startDateField.getLocalDate().with(TemporalAdjusters.firstDayOfMonth()); final LocalDate stop = endDateField.getLocalDate().with(TemporalAdjusters.lastDayOfMonth()); dates = DateUtils.getLastDayOfTheMonths(start, stop); TimeSeries t = new TimeSeries(rb.getString("Column.Month"), rb.getString("Column.Month"), rb.getString("Column.Balance")); // For every month, calculate the total amount for (LocalDate date : dates) { final LocalDate d = date.with(TemporalAdjusters.lastDayOfMonth()); final LocalDate s = date.with(TemporalAdjusters.firstDayOfMonth()); // Get the total amount for the account and every sub accounts for the specified date // and include it in the chart t.add(new Month(DateUtils.asDate(date)), calculateTotal(s, d, account, account.getCurrencyNode())); }/*from w ww . j a v a 2 s .c om*/ return new TimeSeriesCollection(t); } int count = account.getTransactionCount(); if (count > 0) { LocalDate start = account.getTransactionAt(0).getLocalDate(); LocalDate stop = account.getTransactionAt(count - 1).getLocalDate(); dates = DateUtils.getLastDayOfTheMonths(start, stop); } TimeSeries t = new TimeSeries(rb.getString("Column.Month"), rb.getString("Column.Month"), rb.getString("Column.Balance")); AccountType type = account.getAccountType(); for (LocalDate localDate : dates) { // get balance for the whole month LocalDate d = localDate.with(TemporalAdjusters.lastDayOfMonth()); LocalDate s = localDate.with(TemporalAdjusters.firstDayOfMonth()); BigDecimal balance = AccountBalanceDisplayManager.convertToSelectedBalanceMode(type, account.getBalance(s, d)); t.add(new Month(DateUtils.asDate(localDate)), balance); } return new TimeSeriesCollection(t); }
From source file:it.eng.spagobi.engines.chart.bo.charttypes.targetcharts.SparkLine.java
private void addMarker(int index, double value, final Color color, float stoke, XYPlot plot) { logger.debug("IN"); TimeSeries markerSeries = new TimeSeries("Marker" + index, Month.class); for (Iterator iterator = yearsDefined.iterator(); iterator.hasNext();) { String currentYear = (String) iterator.next(); boolean stop = false; for (int i = 1; i < 13 && stop == false; i++) { if (!(currentYear.equalsIgnoreCase(yearsDefined.first()) && i < firstMonth.getMonth())) { markerSeries.add(new Month(i, Integer.valueOf(currentYear).intValue()), value); }// w w w . j a va 2 s. c o m if (currentYear.equalsIgnoreCase(lastYear) && i >= lastMonth.getMonth()) { stop = true; } } } final TimeSeriesCollection dataset = new TimeSeriesCollection(markerSeries); XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(true, false) { public boolean getItemShapeVisible(int _series, int item) { return (false); } public Paint getItemPaint(int row, int column) { return color; } }; renderer.setBaseStroke(new BasicStroke(stoke, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL)); renderer.setBaseShapesVisible(true); renderer.setBaseShapesFilled(true); renderer.setDrawOutlines(true); renderer.setUseFillPaint(true); renderer.setBaseFillPaint(Color.GRAY); renderer.setBaseOutlinePaint(Color.BLACK); renderer.setUseOutlinePaint(true); plot.setDataset(index, dataset); plot.setRenderer(index, renderer); logger.debug("OUT"); }
From source file:userInterface.doctor.ReportingPatientVitalHistJPanel.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: TimeSeriesCollection ts = new TimeSeriesCollection(); TimeSeries object1 = new TimeSeries("RespiratoryRate"); TimeSeries object2 = new TimeSeries("HeartRate"); TimeSeries object3 = new TimeSeries("SystolicPressure"); TimeSeries object4 = new TimeSeries("Weight"); for (VitalSignInfo vitalsign : patient.getVitalHistory().getVitalHistory()) { int rr = (int) vitalsign.getRespRate(); int hr = (int) vitalsign.getHeartRate(); int sp = (int) vitalsign.getSystolicBP(); int wt = (int) vitalsign.getWeight(); try {/*from w ww . j ava2 s . c om*/ object1.add(new Second(vitalsign.getTimeStamp()), rr); object2.add(new Second(vitalsign.getTimeStamp()), hr); object3.add(new Second(vitalsign.getTimeStamp()), sp); object4.add(new Second(vitalsign.getTimeStamp()), wt); } catch (ParseException ex) { // Logger.getLogger(ReportingPatientVitalHistJPanel.class.getName()).log(Level.SEVERE, null, ex); } } ts.addSeries(object1); ts.addSeries(object2); ts.addSeries(object3); ts.addSeries(object4); JFreeChart chart = ChartFactory.createTimeSeriesChart("Vital Signs", "TimeStamp", "Vital Sign Values", ts, true, true, true); chart.setBackgroundPaint(Color.GRAY); chart.getTitle().setPaint(Color.red); XYPlot xy = (XYPlot) chart.getPlot(); DateAxis da = (DateAxis) xy.getDomainAxis(); da.setDateFormatOverride(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")); ChartFrame frame = new ChartFrame("Chart for Vital Signs", chart); frame.setVisible(true); frame.setSize(450, 350); }
From source file:sk.uniza.fri.pds.spotreba.energie.gui.MainGui.java
private void showSpendingStatisticsActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_showSpendingStatisticsActionPerformed final SpendingStatisticsParameters params = new SpendingStatisticsParameters(); int option = showUniversalInputDialog(params, "Vvoj spotreby"); if (option == JOptionPane.OK_OPTION) { new SwingWorker<List, RuntimeException>() { @Override// w ww . ja v a2 s.c om protected List doInBackground() throws Exception { try { return SeHistoriaService.getInstance().getSpendingStatistics(params); } catch (RuntimeException e) { publish(e); return null; } } @Override protected void done() { try { List<KrokSpotreby> spendingStatistics = get(); if (spendingStatistics != null) { final TimeSeries series = new TimeSeries(""); final String title = "Vvoj spotreby"; for (KrokSpotreby krok : spendingStatistics) { series.add(new Month(krok.getDatumOd()), krok.getSpotreba()); } final IntervalXYDataset dataset = (IntervalXYDataset) new TimeSeriesCollection(series); JFreeChart chart = ChartFactory.createXYBarChart(title, // title "", // x-axis label true, // date axis? "", // y-axis label dataset, // data PlotOrientation.VERTICAL, // orientation false, // create legend? true, // generate tooltips? false // generate URLs? ); // Set date axis style DateAxis axis = (DateAxis) ((XYPlot) chart.getPlot()).getDomainAxis(); axis.setDateFormatOverride(new SimpleDateFormat("yyyy")); DateFormat formatter = new SimpleDateFormat("yyyy"); DateTickUnit unit = new DateTickUnit(DateTickUnitType.YEAR, 1, formatter); axis.setTickUnit(unit); JOptionPane.showMessageDialog(null, new ChartPanel(chart)); } } catch (InterruptedException | ExecutionException ex) { Logger.getLogger(MainGui.class.getName()).log(Level.SEVERE, null, ex); } } @Override protected void process(List<RuntimeException> chunks) { if (chunks.size() > 0) { showException("Chyba", chunks.get(0)); } } }.execute(); } }
From source file:view.App.java
private XYDataset createDataset(SpreadObject obj) throws ParseException { TimeSeriesCollection dataset = new TimeSeriesCollection(); TimeSeries series = new TimeSeries( obj.getBaseStock().getTicker() + " : " + obj.getSecondStock().getTicker()); List<SpreadData> data = obj.getData(); for (SpreadData item : data) { String date = item.getDate(); DateFormat df = new SimpleDateFormat("yyyy-MM-dd"); Date dateRes = df.parse(date); Day d = new Day(dateRes); RegularTimePeriod regTime = d.next(); series.add(regTime, item.getSpreadValue().doubleValue()); }//from w ww .ja v a 2 s. com dataset.addSeries(series); return dataset; }
From source file:org.jfree.chart.demo.PriceVolumeDemo.java
/** * Creates a sample dataset./* w ww.j a va 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); }