Class TimeSeries

java.lang.Object
com.codename1.charts.models.XYSeries
com.codename1.charts.models.TimeSeries

public class TimeSeries extends XYSeries
A series for the date / time charts.
  • Constructor Details

    • TimeSeries

      public TimeSeries(String title)

      Builds a new date / time series.

      Parameters
      • title: the series title
  • Method Details

    • add

      public void add(Date x, double y)

      Adds a new value to the series.

      Parameters
      • x: the date / time value for the X axis

      • y: the value for the Y axis

    • getPadding

      protected double getPadding(double x)
      Overrides:
      getPadding in class XYSeries