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
close icon

WPF Chart Tooltip not showing when interactive cursor is visible

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


2 Replies

SS Sheik Syed Abthaheer M Syncfusion Team October 4, 2013 07:16 AM UTC

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


BE Besiana October 4, 2013 08:40 AM UTC

This works great,
Thank you!

Loader.
Live Chat Icon For mobile
Up arrow icon