Hide Comments
Hide Comments

Comments (0)

Specifies the size of the bar as a percentage between 1 and 100. The available canvas is divided by the number of bars in the bar chart to obtain the maximum size of each individual bar. Then, the BarSizePct specifies the size of the bar as a percentage of this maximum size.

Namespace: RSBarCharts

expandingSyntax

Delphi

public
  property BarSizePct: Integer read FBarSizePct write SetBarSizePct default DEFAULT_BAR_SIZE_PCT;
 

Property Value

Type: Integer

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