Table of Contents

TTMSFNCAreaChart.LoadFromJSONDataEx Method

Imports series and points from a JSON file including optional secondary and variable-radius values.

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

Overloads

Overload 1

Imports series and points from a JSON file including optional secondary and variable-radius values.

procedure LoadFromJSONDataEx(AFileName: string; ASeriesName: string; APointsName: string; AYValueName: string; AXValueName: string = ''; AXLabelName: string = ''; AYSecValueName: string = ''; AYVarValueName: string = ''; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AFileName Path of the JSON file.
ASeriesName JSON array key for series objects.
APointsName JSON array key for point objects within each series.
AYValueName JSON key for the primary y-value.
AXValueName JSON key for the x-value; empty for sequential.
AXLabelName JSON key for the x-axis label; empty to omit.
AYSecValueName JSON key for secondary y-values (band charts); empty to omit.
AYVarValueName JSON key for variable radius values; empty to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 2

Imports series from a JSON file with secondary and variable-radius values using explicit load options.

procedure LoadFromJSONDataEx(AFileName: string; ALoadOptions: TTMSFNCChartLoadOptions; ASeriesName: string; APointsName: string; AYValueName: string; AXValueName: string = ''; AXLabelName: string = ''; AYSecValueName: string = ''; AYVarValueName: string = ''; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AFileName Path of the JSON file.
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.
AYSecValueName JSON key for secondary y-values; empty to omit.
AYVarValueName JSON key for variable radius values; empty to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 3

Imports multiple series from a JSON file using key name arrays including secondary and variable-radius values.

procedure LoadFromJSONDataEx(AFileName: string; ASeriesName: string; APointsName: string; AYValueNames: TTMSFNCChartJSONNamesArray = nil; AXValueNames: TTMSFNCChartJSONNamesArray = nil; AXLabelNames: TTMSFNCChartJSONNamesArray = nil; AYSecValueNames: TTMSFNCChartJSONNamesArray = nil; AYVarValueNames: TTMSFNCChartJSONNamesArray = nil; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AFileName Path of the JSON file.
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.
AYSecValueNames Array of JSON key names for secondary y-values; nil to omit.
AYVarValueNames Array of JSON key names for variable radius values; nil to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 4

Imports multiple series from a JSON file using key name arrays with secondary and variable-radius values and explicit load options.

procedure LoadFromJSONDataEx(AFileName: string; ALoadOptions: TTMSFNCChartLoadOptions; ASeriesName: string; APointsName: string; AYValueNames: TTMSFNCChartJSONNamesArray = nil; AXValueNames: TTMSFNCChartJSONNamesArray = nil; AXLabelNames: TTMSFNCChartJSONNamesArray = nil; AYSecValueNames: TTMSFNCChartJSONNamesArray = nil; AYVarValueNames: TTMSFNCChartJSONNamesArray = nil; ASerieCallBack: TTMSFNCChartAddJSONSerieCallBackEvent = nil; APointCallBack: TTMSFNCChartAddJSONPointCallBackEvent = nil ); overload; virtual;

Parameters

Name Description
AFileName Path of the JSON file.
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.
AYSecValueNames Array of JSON key names for secondary y-values; nil to omit.
AYVarValueNames Array of JSON key names for variable radius values; nil to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.