Hide Comments
Hide Comments

Comments (0)

Returns the main (or only) dimension in a chart value - which dimension is returned is based on the chart type. A chart value, depending on the chart type, can contain 1 or more dimensional values that define the chart value.

For example, each chart value in a bar chart contains 1 value (defining the height of the bar), line chart values contains 2 dimensions: X and Y, and shape chart values contain 4 dimensions: X, Y, Width, and Height. The    ValueCount property returns the number of dimensions in the chart value. Use the Values property to access each dimension in the chart value (Note that TRSChartValue descendant classes expose properties, such as X and Y, which are safer to access the specific dimension of the value. You should not count on a specific dimension index to contain a specific property).

alert_noteNotes to Inheritors

To change which dimension is returned by this Value, override the GetDefValue and    SetDefValue methods

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

published
  property Value: TRSChartValueType read GetDefValue write SetDefValue;
 

Property Value

Type: TRSChartValueType

expandingExamples

The following code changes all of the Bar's for a TRSBarChart to clRed and creates a stairstep effect with the bars' values.
 

Delphi

var
   i: Integer;
 begin
   for i := 0 to RSBarChart1.Values.Count - 1 do
   begin
     RSBarChart1.Values[i].Color := clRed;
     RSBarChart1.Values[i].Value := i*10;
   end;
 end;
 
   

expandingSee Also

Comments (0)

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