Class: CurveLayer

CurveLayer(properties)

new CurveLayer(properties)

Create the CurveLayer
Parameters:
Name Type Description
properties Object -
Properties
Name Type Attributes Default Description
xLabel String <optional>
"" -
yLabel String <optional>
"" -
color String <optional>
"#000000" color in hex or rgba value
stroke Number <optional>
1 -
x Number <optional>
0 -
y Number <optional>
[] -
getStroke function -
getColor function -
getValues function -
Source:

Extends

Methods

addFn(dataSourceIds, fn)

Adds a function associated to a list of dataSource ids
Parameters:
Name Type Description
dataSourceIds Array.<String> the list of datasources
fn function the function to add
Overrides:
Source:

clear()

Clear the layer.
Overrides:
Source:

getDataSourcesIds() → {Array.<String>}

Overrides:
Source:
Returns:
The list of dataSource ids
Type
Array.<String>

getId() → {String}

Gets the layer id.
Overrides:
Source:
Returns:
the layer id
Type
String

getProps() → {Object}

Clone current layer properties
Overrides:
Source:
Returns:
a shallow copy of current properties
Type
Object

init()

Inits the layer.
Overrides:
Source:

reset()

Reset to default Layer values
Overrides:
Source:

select(dataSourceIds)

Selects the datasource contained into the list
Parameters:
Name Type Description
dataSourceIds Array the list of datasources
Overrides:
Source:

setData(dataSourceId, records, options)

Parameters:
Name Type Description
dataSourceId
records Array.<Object>
options
Overrides:
Source: