Hide Comments
Hide Comments

Comments (0)

Contains all the bars in the bar chart. Each item ( FMX.RS.BarCharts.TRSBarChartValue ) specifies one bar and its properties, including Value, Color, and Caption. Use the Values collection to add, delete, and modify bars in the chart.
 

Namespace: FMX.RS.BarCharts

expandingSyntax

Delphi

published
  property Values: TRSBarChartValues read GetValues write SetValues stored IsValuesStored;
 

Property Value

Type: TRSBarChartValues

expandingExamples

The following code sets up a TRSBarChart to display images in the bars and creates a couple of bars:

Delphi

var
   Value: TRSBarChartValue;  // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
 begin
   RSBarChart1.ImageList := ImageList1;
   RSBarChart1.BarStyle := bsImage;
   RSBarChart1.BarSizePct := 75;
 
   // Add first Bar
   Value := RSBarChart1.Values.Add;
   Value.Color := clRed;
   Value.Vale := 10.0;
   Value.ImageIndex := 0;
 
   // Add second Bar
   Value := RSBarChart1.Values.Add;
   Value.Color := clBlue;
   Value.Value := 25.0;
   Value.ImageIndex := 1;
 end;

expandingSee Also

Comments (0)

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