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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tooltip binding

Thread ID:

Created:

Updated:

Platform:

Replies:

146067 Jul 18,2019 02:16 PM UTC Jul 19,2019 07:08 AM UTC Xamarin.Android 2
loading
Tags: SfChart
Markus
Asked On July 18, 2019 02:16 PM UTC

Hi,

I create a chartview with XBindingPath and YBindingPath, the series should show the Tooltips. My problem is, that the YBindingPath should show a value in percent - that works, but the Tooltip should show the real value. I have create a helper class
public class ChartValue
{
    /// <summary>
    /// Name
    /// </summary>
    public string Name
    {
        get;
        set;
    }
 
    /// <summary>
    /// Value
    /// </summary>
    public float Value
    {
        get;
        set;
    }
 
    /// <summary>
    /// Value in seconds
    /// </summary>
    public float Seconds
    {
        get;
        set;
    }
}

The current binding looks so: YBindingPath = nameof(ChartValue.Value). The Tooltip should show the Seconds value, is that possible? Thank you!  

Markus
Replied On July 19, 2019 06:20 AM UTC

Hi,

I create a chartview with XBindingPath and YBindingPath, the series should show the Tooltips. My problem is, that the YBindingPath should show a value in percent - that works, but the Tooltip should show the real value. I have create a helper class
public class ChartValue
{
    /// <summary>
    /// Name
    /// </summary>
    public string Name
    {
        get;
        set;
    }
 
    /// <summary>
    /// Value
    /// </summary>
    public float Value
    {
        get;
        set;
    }
 
    /// <summary>
    /// Value in seconds
    /// </summary>
    public float Seconds
    {
        get;
        set;
    }
}

The current binding looks so: YBindingPath = nameof(ChartValue.Value). The Tooltip should show the Seconds value, is that possible? Thank you!  

Hi,

I found a solution. I have created a class that inherits from ChartTooltipBehavior , I override GetView and reset the ToolTip label.

Thank you.

Saravanan Madheswaran [Syncfusion]
Replied On July 19, 2019 07:08 AM UTC

Hi Markus, 
 
We are glad that the reported problem was resolved at your end. Please let us know, if you have any other queries.  
 
Regards, 
Saravanan M 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon