We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

tooltips on point of series

Hi,

I am trying to get tooltips, showing the Y-axis value, on hoovering over the points of the line chartseries in my chart.
I do not get it working. Can you help?

I used the following code, as you show it in the examples:

' ToolTips
Me.chartMetingen.ShowToolTips = True

' Displaying the tooltips on chart elements
using Preparestyle event
' (For each series that I create in the chart I add this handler)
AddHandler _Serie.PrepareSeriesStyle, AddressOf Serie_PrepareSeriesStyle


Private Sub Serie_PrepareSeriesStyle(ByVal sender As Object, ByVal args As Syncfusion.Windows.Forms.Chart.ChartPrepareStyleInfoEventArgs)
Dim series As Syncfusion.Windows.Forms.Chart.ChartSeries = sender
If Not (series Is Nothing) Then
If args.Index = 3 Then ' Y-as value???
Dim Y() As Double = series.Points.Item(args.Index).YValues()
args.Style.ToolTip = Y(0).ToString
args.Handled = True
End If
End If
End Sub


Do I still miss some setting of a property or something else?
I am working with version 3.201.1.0

Thanx.

7 Replies

AD Administrator Syncfusion Team November 2, 2006 04:04 PM UTC

Hi sansan,

Sorry for the delay in responding you.

Please have a look at the sample attached. Let me know if this helps.

ToolTip Sample

We are looking into it and will update you as soon as possible.

Thanks,
Sureshbabu


AD Administrator Syncfusion Team November 3, 2006 05:15 AM UTC

Hi sansan,

I am unable to reproduce your problem.

Please take look at the attached sample. Let me know if this helps.

ChartToolTip Sample

If possible, send me your sample.

Thanks for your patience.

Regards,
Sureshbabu


AD Administrator Syncfusion Team November 3, 2006 12:14 PM UTC

Hello,

Thank you for your response.
I tried your example, but also here the tooltips were not show when hoovering over the points of the series.

What I need is that, when hoovering over a point of a series, the X and Y values are shown in a tooltip. Also only the Y value would do.

The only tooltips that are shown in your example are the texts "Chart Area Tooltip" and "Chart Tooltip", but this is not what I need.

Actually I would expect it to be a property of the series and/or point objects, to show pointvalue tooltips or not. But I couldn't find something like this.

Is there any way (in my version of the chart) to make point value tooltips possible?


I attached my project to htis message. I hope it clears things up?

Thanx, Sandra

Isala.EriDanos.VerpleegkundigDossier.Forms.zip


AD Administrator Syncfusion Team November 6, 2006 11:50 AM UTC

Hi Sansan,

Sorry for the delay in responding you.

Please have a look at the attached sample. Let me know if this helps.

Chart ToolTip.zip

In the sample, using the methods GetPointByValue(), GetValueByPoint(), X and Y values are shown in tooltip.

Regards,
Sureshbabu


SH sh November 7, 2006 03:08 PM UTC

Hi Sureshbabu,

I'm sorry, but could you please check this with my version of the chart (see above).

Your example looks nice, but doesn't cover my problem since
- GetValueByPoint and -GetPointByValue
are not members of the chartarea in my version.

Can it be done in my version????

Thanx, Sandra

Chart ToolTip.zip


AD Administrator Syncfusion Team November 10, 2006 05:55 AM UTC

Hi Sansan,

We are looking into it and will update you as soon as possible.

Thanks for your patience.

Thanks,
Sureshbabu


AD Administrator Syncfusion Team November 16, 2006 03:45 PM UTC

Hi Sansan,

Sorry for the inconvenience caused.

The fuctionalities GetPointByValue(), GetValueByPoint() are added in version3.2.1.1 itself.

Please upgrade to latest version and try the above attached sample.

Once again sorry for the delay in responding you.

Regards,
Sureshbabu

Loader.
Live Chat Icon For mobile
Up arrow icon