Hide Comments
Hide Comments

TRSBubbleChartValues.Add(TRSChartValueType,TRSChartValueType,String,TCanvasColor,Integer) Method

Comments (0)

Creates a new TRSBubbleChartValue instance and adds it to the Items array. The new item is initialized with the X and Y coordinates (Size = 0). Call Add to create a bubble in the collection. The new value is placed at the end of the Items array, or, if the collection is Sorted, placed at the sorted point in the collection (based on a default value (0)).

Add returns the new bubble value.

Namespace: FMX.RS.BubbleCharts

expandingSyntax

Delphi

public
  function Add( X, Y: TRSChartValueType; Caption: String = ''; Color: TCanvasColor = clxDefaultColor; ImageIndex: Integer = -1 ): TRSBubbleChartValue; overload;
 

Parameters

X

Type: TRSChartValueType

Y

Type: TRSChartValueType

Caption

Type: String

Color

Type: TCanvasColor

ImageIndex

Type: Integer

Return Value

Type: TRSBubbleChartValue

expandingExamples

The following example creates values in the collection:

Delphi

var
   Value: TRSBubbleChartValue;  // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
 begin
   Value := MyBubbleChart.Values.Add;
   Value.Caption := 'One';
   Value.Color := clRed;
   Value.Size := 100;
   Value.X := 90.0;
   Value.Y := 70;
   // this code adds the same point but much more quickly
   Value := MyBubbleChart.Values.Add( 90.0, 70, 100, 'One', clRed );
 end;

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb