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 format number in Tooltip ?

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

5 Replies

PS Parthiban Sundaram Syncfusion Team June 5, 2017 07:04 AM UTC

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); 
 
  



KE Kenny June 5, 2017 08:57 AM UTC

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 ?


SP Saravana Pandian Murugan Syncfusion Team June 6, 2017 01:12 PM UTC

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. 



KE Kenny June 7, 2017 07:01 AM UTC

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


SP Saravana Pandian Murugan Syncfusion Team June 8, 2017 11:22 AM UTC

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.


Loader.
Up arrow icon