Skip to main content
Table of Contents

TTMSFNCBarChartSerie.AddPoint Method

Adds a point with a primary y-value and optional color and legend text; returns the new point.

API unit family: TMSFNCChart Declaring type: TTMSFNCBarChartSerie Inherited from: TTMSFNCChartSerie

Overloads

Overload 1

Adds a point with a primary y-value and optional color and legend text; returns the new point.

FMX.TMSFNCChart.hppPascalC++
function AddPoint(AYValue: Double; AColor: TTMSFNCGraphicsColor = gcNull; ALegendText: String = ''): TTMSFNCChartPoint; overload;
TTMSFNCChartPoint* __fastcall AddPoint(double AYValue, TTMSFNCGraphicsColor AColor = (System::Uitypes::TAlphaColor)(0x0), System::UnicodeString ALegendText = System::UnicodeString())/* overload */;

Parameters

Name Description
AYValue Primary y-value of the point.
AColor Per-point fill color override; gcNull inherits the series color.
ALegendText Text shown in the legend for this point; used by pie and spider charts.

Returns

Returned value.

Overload 2

Adds a point with a y-value and x-axis label text; returns the new point.

FMX.TMSFNCChart.hppPascalC++
function AddPoint(AYValue: Double; AXValueText: String; AColor: TTMSFNCGraphicsColor = gcNull; ALegendText: String = ''): TTMSFNCChartPoint; overload;
TTMSFNCChartPoint* __fastcall AddPoint(double AYValue, System::UnicodeString AXValueText, TTMSFNCGraphicsColor AColor = (System::Uitypes::TAlphaColor)(0x0), System::UnicodeString ALegendText = System::UnicodeString())/* overload */;

Parameters

Name Description
AYValue Primary y-value of the point.
AXValueText Text label shown on the x-axis for this point.
AColor Per-point fill color override; gcNull inherits the series color.
ALegendText Legend label for this point.

Returns

Returned value.