TCustomChart.OnGetLegendText

TCustomChart.OnGetLegendText
TCustomChart

property OnGetLegendText: TOnGetLegendText;

Unit
Chart

Description
You can use this event to override the text strings that TChartLegend paints.

TChartLegend has two different modes (or LegendStyle):

lsSeries Legend contains Series Names or Titles.
lsValues Legend contains a Series values or labels.

If the LegendStyle is lsAuto, TChartLegend paints in lsSeries mode if more than one Active Series exists in the Chart.