Class: Chart

OSH.DataReceiver.Chart

This datasource provides parsing to chart data.
Data has to be under the format : ISODATE,X,Y,

Constructor

new Chart()

Source:

Methods

parseData($super, data) → {Array}

Extract data from the message. This split over ",".

Parameters:
Name Type Description
$super function

the parseData super method

data Object

the data to parse

Source:
Returns:

the parsed data as an array of tokens

Type
Array

parseTimeStamp($super, data) → {number}

Extracts timestamp from the data. The timestamp is the first token got from split(',')

Parameters:
Name Type Description
$super function

the parseTimeStamp super method

data string

the data to parse

Source:
Returns:

the extracted timestamp

Type
number