Hide Comments
Hide Comments

TRSChartAxis.FormatValue(TRSChartValueType) Method

Comments (0)

Returns a string representation of the chart value based on the    Format or    DateTimeFormat properties. Based on the    IsDateTime method, the FormatValue function converts the floating point value to a string using the    Format property or a date time string using the    DateTimeFormat property.

Use the FormatValue method to convert a value to a string using the formatting of the chart axis
 

Namespace: RSChartPanel

expandingSyntax

Delphi

public 
  function FormatValue( Value: TRSChartValueType ): String; 
 

Parameters

Value

Type: TRSChartValueType

Return Value

Type: String

expandingExamples

The following code sets the Format of the chart axis and then converts some values to strings:

Delphi

begin
   RSChartPanel1.BottomAxis.Format := '##.00 C';
   ListBox1.Items.Add( RSChartPanel1.BottomAxis.FormatValue( 0 ) );
   ListBox1.Items.Add( RSChartPanel1.BottomAxis.FormatValue( 10.5 ) );
   ListBox1.Items.Add( RSChartPanel1.BottomAxis.FormatValue( 123.4567 ) );
 end;

expandingSee Also

Comments (0)

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