Active Series
Active Series
I am using Delphi VCL with TeeChart 7. At runtime, I need to know if a user has clicked a series off from the DBChart Legend. How can I get the information? Is the list of active series kept in a collection that I can access?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi McMClark,
Yes, you can use OnClickLegend event like this:
Hope this helps!
Yes, you can use OnClickLegend event like this:
Code: Select all
procedure TForm1.DBChart1ClickLegend(Sender: TCustomChart;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var SeriesIndex: Integer;
begin
SeriesIndex := DBChart1.Legend.Clicked(X,Y);
if SeriesIndex <> -1 then
DBChart1.Title.Text[0] := 'Series ' + IntToStr(SeriesIndex) + ' selected'
else
DBChart1.Title.Text[0] := 'No series selected';
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |