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.

How to format number in Tooltip ?

Thread ID:

Created:

Updated:

Platform:

Replies:

130788 Jun 2,2017 05:01 AM Jun 8,2017 07:22 AM Xamarin.Android 5
loading
Tags: SfChart
Kenny
Asked On June 2, 2017 05:01 AM

I want to ask how to format number in Chart Tooltip for Xamarin.Android because i can't find any example in docs. I really appreciate for any proven example. Thank you

Parthiban Sundaram [Syncfusion]
Replied On June 5, 2017 03:04 AM

Hi Kenny,

Thanks for using Syncfusion products.

You can use the following code snippet to format the ChartTooltipBehavior.

Code snippet:


 
 
  
      ChartTooltipBehavior tooltip = new ChartTooltipBehavior(); 
    tooltip.LabelFormat = "#00.00"; 
    chart.Behaviors.Add(tooltip); 
 
  


Kenny
Replied On June 5, 2017 04:57 AM

Thank you for your reply Mr./Ms. Parthiban. Sorry for give unclear question before.I want format like this Rp. 1,000,000 in the tooltip but just in some series (not apply this format to all series in chart). How can i get it ?

Saravana Pandian Murugan [Syncfusion]
Replied On June 6, 2017 09:12 AM

Hi Kenny,

We have achieved your requirement by using GetView method which is an override method of ChartTooltipBehavior. Please download the sample from the following location.

Sample: http://www.syncfusion.com/downloads/support/forum/130788/ze/TooltipFormatSample-1688098921

Please check the sample and let us know if you need further assistance on this.

Regards,
Saravana Pandian M. 


Kenny
Replied On June 7, 2017 03:01 AM

Thank you very much Mr./Ms. Saravana Pandian M. this is what i really need.

Saravana Pandian Murugan [Syncfusion]
Replied On June 8, 2017 07:22 AM

Hi Kenny,

Thanks for the update. We are glad to know that the given solution worked. Please let us know if you need further assistance on this.

Regards,
Saravana Pandian 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.

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.

;