Skip to main content
Table of Contents

TTMSFNCOHLCChart.LoadFromDataArray Method

Replaces the points in an existing series with y-values from the array and returns the updated series.

API unit family: TMSFNCChart Declaring type: TTMSFNCOHLCChart Inherited from: TTMSFNCChart

Overloads

Overload 1

Replaces the points in an existing series with y-values from the array and returns the updated series.

FMX.TMSFNCChart.hppPascalC++
function LoadFromDataArray(ASerieIndex: Integer; YValuesArray: TTMSFNCChartValuesArray; XValuesArray: TTMSFNCChartValuesArray = nil; XLabelsArray: TTMSFNCChartLabelsArray = nil): TTMSFNCChartSerie; overload; virtual;
virtual TTMSFNCChartSerie* __fastcall LoadFromDataArray(int ASerieIndex, TTMSFNCChartValuesArray YValuesArray, TTMSFNCChartValuesArray XValuesArray = TTMSFNCChartValuesArray(), TTMSFNCChartLabelsArray XLabelsArray = TTMSFNCChartLabelsArray())/* overload */;

Parameters

Name Description
ASerieIndex Zero-based index of the series to replace points in.
YValuesArray Array of primary y-values.
XValuesArray Optional array of x-coordinates.
XLabelsArray Optional array of x-axis label strings.

Returns

Returned value.

Overload 2

Replaces the points in an existing series using explicit load options; returns the updated series.

FMX.TMSFNCChart.hppPascalC++
function LoadFromDataArray(ALoadOptions: TTMSFNCChartLoadOptions; ASerieIndex: Integer; YValuesArray: TTMSFNCChartValuesArray; XValuesArray: TTMSFNCChartValuesArray = nil; XLabelsArray: TTMSFNCChartLabelsArray = nil): TTMSFNCChartSerie; overload; virtual;
virtual TTMSFNCChartSerie* __fastcall LoadFromDataArray(TTMSFNCChartLoadOptions* ALoadOptions, int ASerieIndex, TTMSFNCChartValuesArray YValuesArray, TTMSFNCChartValuesArray XValuesArray = TTMSFNCChartValuesArray(), TTMSFNCChartLabelsArray XLabelsArray = TTMSFNCChartLabelsArray())/* overload */;

Parameters

Name Description
ALoadOptions Import options controlling range and format.
ASerieIndex Zero-based index of the series to replace points in.
YValuesArray Array of primary y-values.
XValuesArray Optional array of x-coordinates.
XLabelsArray Optional array of x-axis label strings.

Returns

Returned value.