Interface
caplin.chart.data

Adapter

The class is still an Alpha release. It should only be used for experimental development as substantial changes may occur.
A interface for a service aliased by caplin.chart-data-adapter. If you are getting chart data from a backend other than Caplin Liberator you must provide an implementation of the adapter that will transform the data into a Caplin format that caplin.chart.Series understands.

To make the caplin.chart.Series use your adapter register it under the caplin.chart-data-adapter alias in your application's aliases.xml file.

Constructor Summary

Attributes Name and Description
caplin.chart.data.Adapter()

Method Summary

Attributes Name and Description
Array transform(Array pPoints)

Receives chart series data in a custom format and returns the same data in a Caplin Platform format.

Constructor Detail

caplin.chart.data.Adapter()

Method Detail

Array transform(Array pPoints)

Receives chart series data in a custom format and returns the same data in a Caplin Platform format.

Parameters
Array pPoints The chart series data.
Returns
{Array} Chart series data in Caplin Platform format.