Interface
caplin.chart.series

Adapter

The class is still an Alpha release. It should only be used for experimental development as substantial changes may occur.
Interface that adapters that want to transform chart series data, from Caplin Platform format to chart's format, must implement.

Constructor Summary

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

Method Summary

Attributes Name and Description
<static> Array transform(Array pPoints, Object oFields, String sType)

Receives chart series data in Caplin Format (array of objects) and returns the same data in a format that the chart will understand.

Constructor Detail

caplin.chart.series.Adapter()

Method Detail

<static> Array transform(Array pPoints, Object oFields, String sType)

Receives chart series data in Caplin Format (array of objects) and returns the same data in a format that the chart will understand.

Parameters
Array pPoints The series data in Caplin Platform format
Object oFields Map of field names that can help you transform the data.
String sType Currently 'BidOffer' or 'TradedPrice', depending on which was requested by the chart.
Returns
{Array} The transformed series data.