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

How to bind data in a Tooltip Template

Hi all,

I am trying to customise the tooltip on my chart. My question is how do I bind data in the template it self? I have attached a test project with my current code.

Any help would be great,

Cheers, Leigh.


1 Reply

MK Muneesh Kumar G Syncfusion Team November 21, 2013 08:37 AM UTC

Hi Leigh,


Thanks for using Syncfusion Products.


We can achieve your requirement by setting Text as per the below code snippet.


Code Snippet[XAML]:


<DataTemplate x:Key="ToolTipTemplate">




<TextBlock Text="{Binding YData}" Margin="0,2,10,0" FontSize="14.666" Foreground="White" FontFamily="Segoeui" VerticalAlignment="Center" HorizontalAlignment="Left" />





We have modified your sample based on this and you can find the sample under the following location:

Sample : http://www.syncfusion.com/downloads/support/directtrac/115901/ToolTip-46615306.zip

Please let us know if you have any queries.


Muneesh Kumar G.

Live Chat Icon For mobile
Up arrow icon