Table of Contents

TTMSFNCStackedBarChart.LoadFromJSONStreamDataEx Method

Imports series from a JSON stream including secondary and variable-radius values.

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

Overloads

Overload 1

Imports series from a JSON stream including secondary and variable-radius values.

procedure LoadFromJSONStreamDataEx(AStream: TStream; 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
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 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 2

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

procedure LoadFromJSONStreamDataEx(AStream: TStream; 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
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.
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 stream using key name arrays including secondary and variable-radius values.

procedure LoadFromJSONStreamDataEx(AStream: TStream; 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
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.
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 stream using key name arrays with secondary and variable-radius values and explicit load options.

procedure LoadFromJSONStreamDataEx(AStream: TStream; 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
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.
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.