Please note, this is a STATIC archive of website www.javatpoint.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
Javatpoint Logo
Javatpoint Logo

TimeSeries class

  • TimeSeries Class comes under the org.jfree.data.time package of the JFreeChart library.
  • This class represents a sequence of zero or more data items in the form (period, value) where 'period' is some instance of a subclass of RegularTimePeriod.

Constructor:

constructor Description
TimeSeries(Comparable name) It creates a new (empty) time series.
TimeSeries(Comparable name, String domain, String range) It creates a new time series that contains no data.

Method Summary

Method Description
add(RegularTimePeriod period, double value) This method adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
add(RegularTimePeriod period, double value, boolean notify) This method adds a new data item to the series and sends a SeriesChangeEvent to all registered listeners.
add(TimeSeriesDataItem item) This method adds a data item to the series and sends a SeriesChangeEvent to all registered listeners.
addAndOrUpdate(TimeSeries series) This method adds or updates data from one series to another.
clear( ) This method removes all data items from the series and sends a SeriesChangeEvent to all registered listeners.
delete(int start, int end) This method deletes data from start until end index (end inclusive).






Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA