new TimeSeries(position, optionsopt)
Initialises a new
TimeSeries
with optional data options.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
position |
number | Unique, integer and strictly positive value, it sorts series on the graph from top to bottom. | |
options |
DefaultTimeSeriesOptions |
<optional> |
TimeSeries options. |
- Source:
Methods
append(dataSample)
Adds a new data sample to the
TimeSeries
, preserving chronological order.
Parameters:
Name | Type | Description |
---|---|---|
dataSample |
DataSample | The DataSample to add. |
- Source:
clear()
Clears all data from this
TimeSeries
.
- Source: