Initialises a new TimeSeries
with optional data options.
Options are of the form (defaults shown):
{ resetBounds: true, // enables/disables automatic scaling of the y-axis resetBoundsInterval: 3000 // the period between scaling calculations, in millis }
Presentation options for TimeSeries are specified as an argument to SmoothieChart.addTimeSeries
.
Adds a new data point to the TimeSeries
, preserving chronological order.
the position, in time, of this data point
the value of this data point
if timestamp
has an exact match in the series, this flag controls
whether it is replaced, or the values summed (defaults to false.)
Recalculate the min/max values for this TimeSeries
object.
This causes the graph to scale itself in the y-axis.