Page 1 of 1

Tool Tips in ActiveX v5

Posted: Wed Dec 31, 2003 12:00 am
by 6926551
Hi,

I'm running an ASP application with the v5 ActiveX TeeChart control. I want to add a tooltip to an existing line series (float value). The series is datasource bound. I want the tooltip text to be bound to a different datasource column (text value). Is this possible? Can you please point me at any example code? Thanks!

Posted: Wed Dec 31, 2003 7:25 am
by Chris
Hi --
I'm running an ASP application with the v5 ActiveX TeeChart control. I want to add a tooltip to an existing line series (float value). The series is datasource bound. I want the tooltip text to be bound to a different datasource column (text value). Is this possible? Can you please point me at any example code? Thanks!
OK, as far as I can see you have a couple of options:
1. Load both the float value and the text value into the series. Change IAxisLabels.Style to talValue to display the values, not the text, on the bottom axis. Change IMarksTipTool.Style to smsLabel to display the text in the tooltips.
2. Use the TChart1_OnMarkTipToolGetText() event to load the text values into the tooltips. It would probably be better performance wise if you were to load these values into an array and access the text values from there.