Constructor
new module:ct-chart /Series(series Request, chart Series Adapter)
Constructs a new Series
.
Parameters:
Name | Type | Description |
---|---|---|
seriesRequest |
Object | A
|
chartSeriesAdapter |
Object | A
|
Methods
add Listener(listener)
Adds a listener for series events.
Parameters:
Name | Type | Description |
---|---|---|
listener |
module:ct-chart |
The listener that will receive series data. |
add Study(study Alias, derivation Params, config Overridesopt, study Adapteropt) → {module:ct-chart /Study}
Adds a study to this series.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
studyAlias |
String | The study alias, to be retrieved from the AliasRegistry. |
|
derivationParams |
Object | An object literal containing the options for the study. |
|
configOverrides |
Object |
<optional> |
Configuration passed from the descendant class upon instantiation. |
studyAdapter |
module:ct-chart |
<optional> |
The adaptor to pass the
study data through before passing it onto the
|
Throws:
-
if the study already exists in the series.
- Type
-
module:ct-core
/Error
Returns:
The newly constructed study.
add Study Listener(listener)
Adds a listener for study events.
Parameters:
Name | Type | Description |
---|---|---|
listener |
module:ct-chart |
The listener that will receive study data. |
dispose()
This method disposes the Series
object. It must be called to
properly close subscriptions.
get Data() → {Array.< Array .<Number>>}
Return a copy of the data received from the backend for this series or null if no data has been received or series.dispose() was called
Returns:
A copy of the data received from the backend
- Type
-
Array
.<Array .<Number>>
get Series Request() → {module:ct-chart /series /Series Request}
Returns a SeriesRequest
object
that was passed to the constructor.
Returns:
A Request
object.
get Study(study Id) → {module:ct-chart /Study}
Gets the study object.
Parameters:
Name | Type | Description |
---|---|---|
studyId |
String | The study ID you want to retrieve. |
Returns:
The study if found, otherwise undefined.
remove Study(study Id)
Removes a study from the series.
Parameters:
Name | Type | Description |
---|---|---|
studyId |
String | The ID of the study to remove. |
Throws:
-
if the study does not exist in the series.
- Type
-
module:ct-core
/Error