Contains all the bars in the high/low/average chart. Each item (TRSHighLowAverageChartValue) specifies one bar and its properties, including X, High, Low, Average, Color, and Caption. Use the Values collection to add, delete, and modify bars in the chart.
Namespace: FMX.RS.BarCharts
Property Value
Type: TRSHighLowAverageChartValues
The following code sets up a TRSHighLowAverageChart to display a couple of bars:
Delphi
|
var
Value: TRSHighLowAverageChartValue; // note, this type should be the same that the chart uses (e.g., TRS2DChartValue, TRSArrowChartValue, etc)
begin
RSHighLowAverageChart1.BarStyle := bsRoundRect;
RSHighLowAverageChart1.BarSizePct := 75;
// Add first Bar
Value := RSHighLowAverageChart1.Values.Add;
Value.X := EncodeDate(2014, 12, 24);
Value.High := 100;
Value.Low := 50;
Value.Average := 80;
Value.Color := clRed;
// Add second Bar
Value := RSHighLowAverageChart1.Values.Add;
Value.X := EncodeDate(2014, 12, 31);
Value.High := 90;
Value.Low := 60;
Value.Average := 68;
Value.Color := clBlue;
end;
|
|