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.
Unfortunately, activation email could not send to your email. Please try again.

WPF Chart Tooltip not showing when interactive cursor is visible

Thread ID:

Created:

Updated:

Platform:

Replies:

113588 Oct 1,2013 05:10 AM Oct 4,2013 04:40 AM WPF 2
loading
Tags: Chart
Besiana
Asked On October 1, 2013 05:10 AM

Hi,
In a WPF chart I have templated the series data points with a canvas which has a tooltip and this works fine. I have added an interactive cursor to the chart area, like in the following snippet:

<syncfusion:ChartArea.InteractiveCursors>
                    <syncfusion:InteractiveCursor Name="IntCursor"
                                                  CursorVisibility="Visible"
                                                  InteractiveCursorSymbolVisibility="Collapsed"
                                                  LabelVisibility="Visible"
                                                  IsBindWithSegment="False"
                                                  BindWithMouseMoveOnSegment="False"
                                                  IsBindWithMouseMove="True"
                                                  ForceCursor="True"
                                                  Focusable="True"
                                                  OffsetX="100" 
                                                  OffsetY="100" 
                                                  Background="Azure" 
                                                  Foreground="Black" 
                                                  Margin="0" 
                                                  BorderThickness="6.0" 
                                                  ClipToBounds="False" 
                                                  MinHeight="300" 
                                                  MinWidth="500" 
                                                  Opacity="1.0"
                                                  />
                    </syncfusion:ChartArea.InteractiveCursors>
...

I see the following behavior:
When CursorVisibility="Visible", the tooltip is not displayed for the data points.
When CursorVisibility="Collapsed" or "Hidden", then the tooltip is displayed but the cursor is not visible.

Is there a way to make them both visible?

Kind regards,
besiana


Sheik Syed Abthaheer M [Syncfusion]
Replied On October 4, 2013 03:16 AM

Hi Besiana,

Thanks for using Syncfusion products.

We have analyzed your query and you can achieve your requirement (Tooltip showing when interactive cursor is visible) by using custom template for HorizontalCursor and VerticalCursor with IsHitTestVisible as “False”. We have prepared the sample based on your requirement. 
Please download the sample from the below location.

Please let us know if any need further assistance.

Regards,
M. Sheik



InteractiveCursorWithToolTipDemo_3189a827.zip

Besiana
Replied On October 4, 2013 04:40 AM

This works great,
Thank you!

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;