Constructor
# <SingleTimeSeriesItem description url isBinary xAxesLabelString yAxesLabelString type />
This is a component used as container to hold the SingleTimeSeries component which is used to display a time series graph of the history of values for the single-property items. It relies on useFetch to post the time interval of interest and useInterval for periodic posting of the data to get results.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
description |
string | Yes | The name of the sensor element or item. | |
url |
string | Yes | The endpoint to fetch the value history from. | |
isBinary |
bool | Yes | A flag to check whether the value the sensor returns is a continuous value or a two-state value like true and false. | |
xAxesLabelString |
string | Yes | The title of the x-axis of the time series. | |
yAxesLabelString |
string | Yes | The title of the y-axis of the time series. | |
type |
string | Yes | The type of sensor value whose history is being displayed. |