Hi,
I have a chart with a TCalendarSeries. I would like to get the day/month/year values when I click on a day of the graph.
I've try some events for this series but I can't get this values.
Thanks in advance for your help.
Regards.
Komar
How to use TCalendarSeries ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Komar,
Yes, you can do something like this:
Yes, you can do something like this:
Code: Select all
procedure TForm1.Chart1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
var MyClickedDate: TDateTime;
begin
Series1.ClickedDate(X, Y, MyClickedDate);
Chart1.Title.Text[0]:=DateTimeToStr(MyClickedDate);
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 |