Tooltip in a point serie

TeeChart for ActiveX, COM and ASP
Post Reply
JAV
Newbie
Newbie
Posts: 65
Joined: Thu May 12, 2011 12:00 am

Tooltip in a point serie

Post by JAV » Wed Aug 22, 2012 5:25 pm

Hello,
We are working in a chart with point series (TeeChart8.ocx). We are using the following instruction to add values or points to the serie:

Code: Select all

Series(i):addxy(dfecha,dvalor,observaciones,0).
In the x-axis we have date and a value in y-axis, we need to add a tooltip to each point with an extent information which is in "observaciones". We are setting the serie as follows:

Code: Select all

Series(i):XValues:DateTime=True
But instead of have the dates on X-axis we have the information of the "observaciones" field. Is it correct to use the third parameter of Series(i) instruction to add a tooltip? Is there any other way to display the information on a tooltip keeping at the same time the X-axis values?
Thank you very much, regards,

JAV

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Tooltip in a point serie

Post by Yeray » Thu Aug 23, 2012 7:41 am

Hi JAV,

By default, the Axis.Bottom.Labels.Style is set to "talAuto". The "talAuto" Style shows the values when there aren't labels associated to the series points, but the series labels when present.
If you have labels in your series points (and you need to have them to use the tooltip), you can force the bottom axis labels to show the series values setting the Labels Style to "talValue".
In VB6:

Code: Select all

TChart1.Axis.Bottom.Labels.Style = talValue
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

JAV
Newbie
Newbie
Posts: 65
Joined: Thu May 12, 2011 12:00 am

Re: Tooltip in a point serie

Post by JAV » Thu Aug 23, 2012 2:09 pm

Hi Yeray:

Thanks a lot. Works just as I need it.

Best regards,

JAV

Post Reply