This interface must be implemented by classes that are to provide communication to a backend system for charting data.
The service provided by a class that implements this interface is aliased by caplin.chart-service
.
The default implementation is module:ct-chart/service/StreamLinkChartService
which knows how to obtain chart
data from Caplin Platform.
ChartService
is used by module:ct-chart/Series
.
Methods
discard(series Request, listener)
Unsubscribe from receiving chart series data for the given request.
Parameters:
Name | Type | Description |
---|---|---|
seriesRequest |
Object | The |
listener |
Object | The listener object that will be unsubscribed as a listener. |
retrieve(series Request, listener)
Subscribe to receive chart series data.
Parameters:
Name | Type | Description |
---|---|---|
seriesRequest |
Object | A |
listener |
Object | Object that implements callbacks that the message service will call when it has chart series data. |