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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Chart Lebel value

Thread ID:





120794 Oct 15,2015 07:26 AM UTC Oct 15,2015 11:57 AM UTC ASP.NET Web Forms 1
Tags: Chart
Asked On October 15, 2015 07:26 AM UTC


How to round the chart data label value in syncfusion chart.

Thank You,

Deepaa Pragaasam [Syncfusion]
Replied On October 15, 2015 11:57 AM UTC

Hi Vijayakumar,
Thanks for contacting syncfusion support.
We have analyised your query and created a workaround sample for providing the rounding support to datalabels.
The “OnClientDisplayTextRendering” event is used to achieve this.
Code Example:

   function labelFormat(sender)


            var num = sender.data.text;

            sender.data.text = Math.round(num * 100) / 100;

The datalabel is rounded to 2 decimal places

Please refer the below link for further details on the event
We have attached sample for your reference
As we dont know your version, so we have sent a sample without ej.web.all.min.js in scripts folder.
Please refer the below screenshot and refer the files accordingly

Please let us know if you have any concern


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