TCustomChart.FormattedLegend
TCustomChart
function FormattedLegend(SeriesOrValueIndex: Integer): String;
Unit
Chart
Description
This function returns the text string corresponding to a Legend position.
The TCustomChart.Legend position depends on the Legend TCustomChartLegend.LegendStyle property.
If LegendStyle is lsSeries, then the text string will be the Series or ValueIndex'th Active Series Title.
If LegendStyle is lsValues, then the text string will be the formatted Series or ValueIndex'th value of the first Active Series in the Chart.
If LegendStyle is lsAuto and only one Active Series exists in the Chart, then the LegendStyle is considered to be lsValues.
If there's more than one Active Series then LegendStyle will be lsSeries.
Values are formatted accordingly to the TLegendTextStyle property.