Tool Tips in ActiveX v5

TeeChart for ActiveX, COM and ASP
Post Reply
jlynch
Newbie
Newbie
Posts: 1
Joined: Tue Jul 01, 2003 4:00 am
Location: US-Chicago

Tool Tips in ActiveX v5

Post by jlynch » Wed Dec 31, 2003 12:00 am

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!

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Wed Dec 31, 2003 7:25 am

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.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply