Table of Contents

TTMSFNCPieChart.LoadFromCSVData Method

Imports series and points from a CSV file; creates a series for each column in YValueColumnIndexesArray.

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

Overloads

Overload 1

Imports series and points from a CSV file; creates a series for each column in YValueColumnIndexesArray.

procedure LoadFromCSVData(AFileName: string; ALoadOptions: TTMSFNCChartLoadOptions; YValueColumnIndexesArray: TTMSFNCChartColumnsArray; XValueColumnIndex: Integer = -1; XLabelColumnIndex: Integer = -1); overload; virtual;

Parameters

Name Description
AFileName Path of the CSV file to import.
ALoadOptions Import options controlling delimiter, first-line behavior, range, and format.
YValueColumnIndexesArray Array of zero-based column indexes containing y-values.
XValueColumnIndex Zero-based column index for x-values; use -1 to generate sequential x-values.
XLabelColumnIndex Zero-based column index for x-axis label text; use -1 to omit labels.

Overload 2

Imports series and points from a CSV file using default load options.

procedure LoadFromCSVData(AFileName: string; YValueColumnIndexesArray: TTMSFNCChartColumnsArray; XValueColumnIndex: Integer = -1; XLabelColumnIndex: Integer = -1); overload; virtual;

Parameters

Name Description
AFileName Path of the CSV file to import.
YValueColumnIndexesArray Array of zero-based column indexes containing y-values.
XValueColumnIndex Zero-based column index for x-values; use -1 for sequential x-values.
XLabelColumnIndex Zero-based column index for x-axis label text; use -1 to omit labels.