Hide Comments
Hide Comments

Comments (0)

The Values property contains all the bubbles in the bubble chart. Each bubble (TRSBubbleChartValue) may have its own Color and Caption. The size of the bubble is specified by the Size property. The size of the bubbles can represent the area of the bubbles or the diameter of the bubble (controlled by the    SizeOption property of TRSBubbleChartValues), which affects the relative size of one bubble to another.
Bubble sizes can be negative values, although negative bubbles do not display in the chart by default (    NegativeSizeVisible must be true). When negative bubble sizes are displayed, they use their absolute size and are always drawn using the    NegativeSizeColor.

Use the Values collection to add, delete, and modify bubbles in the chart.

Namespace: RSBubbleCharts



  property Values: TRSBubbleChartValues read GetValues write SetValues stored IsValuesStored;

Property Value

Type: TRSBubbleChartValues


The following code adds 3 bubbles to the chart:


   Value: TRSBubbleChartValue;  // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
   RSBubbleChart1.SizeOption := boDiameter;
   // Add first bubble
   Value := RSBubbleChart1.Values.Add;
   Value.Color := clRed;
   Value.X := 10;
   Value.Y := 10;
   Value.Size := 100.0;
   // Add second point, twice the size of the first
   Value := RSBubbleChart1.Values.Add;
   Value.Color := clGreen;
   Value.X := 50;
   Value.Y := 100;
   Value.Size := 200.0;
   // Add third point, twice as large as second
   Value := RSBubbleChart1.Values.Add;
   Value.Color := clNavy;
   Value.X := 100;
   Value.Y := 25;
   Value.Size := 400.0;

expandingSee Also

Comments (0)

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