Hide Comments
Hide Comments

Comments (0)

Specifies the style, or shape, of the bars in the bar chart. Use this property to specify the shape of all the bars in the bar chart.

Namespace: RSBarCharts

expandingSyntax

Delphi

public
  property BarStyle: TBarChartStyle read FBarStyle write SetBarStyle default bsRectangle;
 

Property Value

Type: TBarChartStyle

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