Class: DataSample

HorizontalCharts.DataSample(data)

new DataSample(data)

Initialises a new DataSample.
Parameters:
Name Type Description
data Object An object with DataSample data.
Properties
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.
Source: