Hide Comments
Hide Comments

TRSChartLegend.FormatValue(TRSCustomChart,Integer) Method

Comments (0)

Returns the label for the RSChartPanel.TRSChartValue at the Index position in the chart's  Values collection. The string returned is dependent on the TRSChartValue instance and the  TextStyle property.

Namespace: RSChartPanel

expandingSyntax

Delphi

public
  function FormatValue( Chart: TRSCustomChart; Index: Integer ): String;
 

Parameters

Chart

Type: TRSCustomChart

Index

Type: Integer

Return Value

Type: String

expandingExamples

The following code fills a list box with formatted labels for all the values in a chart:

Delphi

var
   i: Integer;
 begin
   ListBox1.Items.BeginUpdate;
   try
     ListBox1.Items.Clear;
     for i := 0 to Chart1.Values.Count - 1 do
       ListBox1.Items.Add(RSChartPanel1.Legend.FormatValue(Chart1, i));
   finally
     ListBox1.Items.EndUpdate;
   end;
 end;
 

expandingSee Also

Comments (0)

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