Mark Tips text

TeeChart for ActiveX, COM and ASP
Post Reply
OptUser
Newbie
Newbie
Posts: 20
Joined: Mon Nov 21, 2005 12:00 am

Mark Tips text

Post by OptUser » Tue Sep 12, 2006 1:01 pm

Hi people,

I would like to custom the text which is shown when the mouse is over a point. For example, I would like to put the serie name and the XY value.

text= "Serie Name " & "X Y values"

Any idea?

Thanks,

Anahi

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

Post by Narcís » Tue Sep 12, 2006 2:58 pm

Hi Anahi,

Yes, you can use OnGetSeriesMark event and something like this:

Code: Select all

Private Sub TChart1_OnGetSeriesMark(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, MarkText As String)
    With TChart1.Series(SeriesIndex)
        MarkText = CStr(.Name) & ": " & CStr(.XValues.Value(ValueIndex)) & ", " & CStr(.YValues.Value(ValueIndex))
    End With
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