The service provided by a class that implements this interface is aliased by caplin.chart-service
.
The default implementation is caplin.chart.service.StreamLinkChartService which knows how to obtain chart
data from Caplin Platform.
ChartService
is used by caplin.chart.Series.
Attributes | Name and Description |
---|---|
|
caplin.chart.service.ChartService()
|
Attributes | Name and Description |
---|---|
|
void
discard(Object seriesRequest, Object listener)
Unsubscribe from receiving chart series data for the given request. |
|
void
retrieve(Object seriesRequest, Object listener)
Subscribe to receive chart series data. |
►
caplin.chart.service.ChartService()
►
void
discard(Object seriesRequest, Object listener)
Unsubscribe from receiving chart series data for the given request.
Object | seriesRequest | The caplin.chart.series.SeriesRequest object that was used to subscribe. |
Object | listener | The listener object that will be unsubscribed as a listener. |
►
void
retrieve(Object seriesRequest, Object listener)
Subscribe to receive chart series data.
Object | seriesRequest | A caplin.chart.series.SeriesRequest object that holds all the information that the message service needs to retrieve the correct chart series data. |
Object | listener | Object that implements callbacks that the message service will call when it has chart series data. |