Class: DataSample


new DataSample(data)

Initialises a new DataSample.
Name Type Description
data Object An object with DataSample data.
Name Type Attributes Default Description
ts number This DataSample timestamp (milliseconds since the Unix Epoch).
color string | CanvasPattern The color or pattern of this DataSample.
borderWidth number <optional>
1 The border width of this DataSample. 0 = no border line.
borderColor string <optional>
"black" The border color of this DataSample.
value number <optional>
NaN The value of this DataSample.
desc string <optional>
"" A short text describing this DataSample.