Page 1 of 1

Mark Tips text

Posted: Tue Sep 12, 2006 1:01 pm
by 9529272
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

Posted: Tue Sep 12, 2006 2:58 pm
by narcis
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