Hide Comments
Hide Comments

Comments (0)

Contains all the bars in the sparse bar chart. Each item ( RSBarCharts.TRSSparseBarChartValue ) specifies one bar and its properties, including X, Value, Color, and Caption. Use the Values collection to add, delete, and modify bars in the chart.
 

Namespace: RSBarCharts

expandingSyntax

Delphi

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

Property Value

Type: TRSSparseBarChartValues

expandingExamples

The following code sets up a TRSSparseBarChart to display a couple of bars:

Delphi

var
   Value: TRSSparseBarChartValue;  // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
 begin
   RSSparseBarChart1.BarStyle := bsRoundRect;
   RSSparseBarChart1.BarSizePct := 75;
 
   // Add first Bar
   Value := RSSparseBarChart1.Values.Add;
   Value.X := EncodeDate(2014, 12, 24);
   Value.Color := clRed;
   Value.Vale := 10.0;
 
   // Add second Bar
   Value := RSSparseBarChart1.Values.Add;
   Value.X := EncodeDate(2014, 12, 31);
   Value.Color := clBlue;
   Value.Value := 25.0;
 end;

expandingSee Also

Comments (0)

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