OnGetLegendText - which series

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

OnGetLegendText - which series

Post by TheRoadrunner » Fri Jun 29, 2007 7:11 am

Hi

In an attempt to put actual (newest) values in the legend, I use the OnGetLegendText handler.
This handler has an index parameter, but this is not an index to the series collection, since series can be invisible, or have their ShowInLegend false.
Is there a sure way to gain access to the series of the legend text in question?

Best

Søren

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 02, 2007 11:30 am

Hi Søren,

knowing the text in the legend (by using the OnGetLegendText event) you should be able to check which Series in the Chart have the same Series title.

if Text = Chart1.Series[x].Title thn
....;

Post Reply