Table of Contents

TTMSFNCChart.LoadFromJSONStreamData Method

Imports series and points from a JSON stream.

API unit family: TMSFNCChart Declaring type: TTMSFNCChart

Overloads

Overload 1

Imports series and points from a JSON stream.

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

Parameters

Name Description
AStream Stream containing JSON data.
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 the x-value; empty for sequential.
AXLabelName JSON key for the x-axis label; empty to omit.
ASerieCallBack Optional series callback.
APointCallBack Optional point callback.

Overload 2

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

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

Parameters

Name Description
AStream Stream containing JSON data.
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 stream using arrays of JSON key names.

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

Parameters

Name Description
AStream Stream containing JSON data.
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 stream using key name arrays and explicit load options.

procedure LoadFromJSONStreamData(AStream: TStream; 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
AStream Stream containing JSON data.
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.