Table of Contents

TTMSFNCMarkerChart.LoadFromJSONTextData Method

Imports series and points from a JSON string.

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

Overloads

Overload 1

Imports series and points from a JSON string.

procedure LoadFromJSONTextData(AText: string; ASeriesName: string; APointsName: string; AYValueName: string; AXValueName: string = ''; AXLabelName: string = ''; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AText JSON-formatted string to import.
ASeriesName JSON array key for series objects.
APointsName JSON array key for point objects.
AYValueName JSON key for the primary y-value.
AXValueName JSON key for x-values; empty for sequential.
AXLabelName JSON key for x-axis labels; empty to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 2

Imports series and points from a JSON string using explicit load options.

procedure LoadFromJSONTextData(AText: string; ALoadOptions: TTMSFNCChartLoadOptions; ASeriesName: string; APointsName: string; AYValueName: string; AXValueName: string = ''; AXLabelName: string = ''; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AText JSON-formatted string to import.
ALoadOptions Import options.
ASeriesName JSON array key for series objects.
APointsName JSON array key for point objects.
AYValueName JSON key for the primary y-value.
AXValueName JSON key for x-values; empty for sequential.
AXLabelName JSON key for x-axis labels; empty to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 3

Imports multiple series from a JSON string using arrays of JSON key names.

procedure LoadFromJSONTextData(AText: string; ASeriesName: string; APointsName: string; AYValueNames: TTMSFNCChartJSONNamesArray = nil; AXValueNames: TTMSFNCChartJSONNamesArray = nil; AXLabelNames: TTMSFNCChartJSONNamesArray = nil; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AText JSON-formatted string to import.
ASeriesName JSON array key for series objects.
APointsName JSON array key for point objects.
AYValueNames Array of JSON key names for primary y-values.
AXValueNames Array of JSON key names for x-values; nil for sequential.
AXLabelNames Array of JSON key names for x-axis labels; nil to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 4

Imports multiple series from a JSON string using key name arrays and explicit load options.

procedure LoadFromJSONTextData(AText: string; ALoadOptions: TTMSFNCChartLoadOptions; ASeriesName: string; APointsName: string; AYValueNames: TTMSFNCChartJSONNamesArray = nil; AXValueNames: TTMSFNCChartJSONNamesArray = nil; AXLabelNames: TTMSFNCChartJSONNamesArray = nil; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AText JSON-formatted string to import.
ALoadOptions Import options.
ASeriesName JSON array key for series objects.
APointsName JSON array key for point objects.
AYValueNames Array of JSON key names for primary y-values.
AXValueNames Array of JSON key names for x-values; nil for sequential.
AXLabelNames Array of JSON key names for x-axis labels; nil to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.