Page 1 of 1

Tooltip in a point serie

Posted: Wed Aug 22, 2012 5:25 pm
by 15059326
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

Re: Tooltip in a point serie

Posted: Thu Aug 23, 2012 7:41 am
by yeray
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

Re: Tooltip in a point serie

Posted: Thu Aug 23, 2012 2:09 pm
by 15059326
Hi Yeray:

Thanks a lot. Works just as I need it.

Best regards,

JAV