Continiously display of values

TeeChart for ActiveX, COM and ASP
Post Reply
riego
Newbie
Newbie
Posts: 2
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Continiously display of values

Post by riego » Thu Mar 13, 2008 1:38 pm

Hello,

I am using TeeChart v7 and i am searching since a while to solve a problem:

I am search for a tool or possibilty to display continuously the x- and y- values of the spot where the coursor is? Similar to the 'Surface Nearest' tool, but with normal 2D-Charts.

I hope you know what I mean and you can give me an advice!!!

Thx a lot

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 13, 2008 3:23 pm

Hi riego,

I can think of two options here:

1. Use MarksTip like this:

Code: Select all

    TChart1.Tools.Add tcMarksTip    
    TChart1.Tools.Items(0).asMarksTip.Series = TChart1.Series(0)
    TChart1.Tools.Items(0).asMarksTip.Style = smsXY
2. Using the interpolation example I posted here?

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

riego
Newbie
Newbie
Posts: 2
Joined: Thu Aug 09, 2007 12:00 am
Contact:

Post by riego » Thu Mar 13, 2008 3:51 pm

Thx for your fast answer.
Actually I cannot test your suggestion, because i am using an already integrated TeeChart in a project. I am just able to change the standard settings. So I thought there is a standard tool for such a requirement. Unfortunately the MarkTips-tool don't give me what I really need.

But thanks though!

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 13, 2008 4:08 pm

Hi riego,

Which is the exact problem you have with MarksTip tool? You can customize it using OnMarkTipToolGetText, for example:

Code: Select all

Private Sub TChart1_OnMarkTipToolGetText(ByVal Tool As Long, Text As String)
    Text = "Those are the series values: " & Text
End Sub
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply