Page 1 of 1

Continiously display of values

Posted: Thu Mar 13, 2008 1:38 pm
by 15046356
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

Posted: Thu Mar 13, 2008 3:23 pm
by narcis
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!

Posted: Thu Mar 13, 2008 3:51 pm
by 15046356
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!

Posted: Thu Mar 13, 2008 4:08 pm
by narcis
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