Interface
caplin.chart.series

Adapter

This interface must be implemented by an adapter that is to transform chart series data from Caplin Platform format to chart format.

Constructor Summary

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

Method Summary

Attributes Name and Description
<static> Array transform(Array points)

Receives chart series data in Caplin Format 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 points)

Receives chart series data in Caplin Format and returns the same data in a format that the chart will understand.

Parameters
Array points The series data in Caplin Platform format: [ [ timestamp, open, high, low, close (,volume) ], ... ].
Returns
{Array} The transformed series data as expected by the consuming chart.