2 * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
16 package org.achartengine.model;
\r
18 import java.util.Date;
\r
21 * A series for the date / time charts.
\r
23 public class TimeSeries extends XYSeries {
\r
26 * Builds a new date / time series.
\r
28 * @param title the series title
\r
30 public TimeSeries(String title) {
\r
35 * Adds a new value to the series.
\r
37 * @param x the date / time value for the X axis
\r
38 * @param y the value for the Y axis
\r
40 public synchronized void add(Date x, double y) {
\r
41 super.add(x.getTime(), y);
\r