Table of Contents

TTMSFNCBarChart.AddSeriesFromDataArray Method

Creates a new series from y-values (and optional x-values and labels) and returns it.

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

Overloads

Overload 1

Creates a new series from y-values (and optional x-values and labels) and returns it.

function AddSeriesFromDataArray(YValuesArray: TTMSFNCChartValuesArray; XValuesArray: TTMSFNCChartValuesArray = nil; XLabelsArray: TTMSFNCChartLabelsArray = nil): TTMSFNCChartSerie; overload; virtual;

Parameters

Name Description
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

Creates a new series from y-values using explicit load options and returns it.

function AddSeriesFromDataArray(ALoadOptions: TTMSFNCChartLoadOptions; YValuesArray: TTMSFNCChartValuesArray; XValuesArray: TTMSFNCChartValuesArray = nil; XLabelsArray: TTMSFNCChartLabelsArray = nil): TTMSFNCChartSerie; overload; virtual;

Parameters

Name Description
ALoadOptions Import options controlling range, format, and CSV parsing behavior.
YValuesArray Array of primary y-values.
XValuesArray Optional array of x-coordinates.
XLabelsArray Optional array of x-axis label strings.

Returns

Returned value.