TCustomChartLegend.Clicked
TCustomChartLegend
function Clicked(x, y: Integer): Integer; overload;
Unit
Chart
Description
Use Clicked to obtain the Legend index of the clicked legend.
Example
var
tmp : Integer;
tmp:=Chart1.Legend.Clicked( x,y ) ;
if tmp <> -1 then
ShowMessage( 'Clicked legend item: '+Chart1.FormattedLegend( tmp ) );