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

How to hide labels decimals when x value is number

Thread ID:





123866 Apr 27,2016 09:23 PM UTC Apr 28,2016 12:37 PM UTC ASP.NET Web Forms 1
Tags: Chart
Roimer Machacón Otero
Asked On April 27, 2016 09:23 PM UTC

Hi, we're using charts and have this problem

In the X axis of the chart have data of years, now when open the chart is showed the years and anothers values between the columns with decimals points, exist a form of hide this values that aren't need that showed in the chart.

Attached to this post a image with this that occur. In the image the value required are 2011, 2012, 2013, 2014, 2015, 2016 not for example 2011.2 (isn't a year)

Attachment: hide_a6a81398.zip

Saravana Kumar Kanagavel [Syncfusion]
Replied On April 28, 2016 12:37 PM UTC

Hi Roimer, 
Thanks for contacting syncfusion support. 
We have analyzed your query. 
       I.         If you want to show Datetime values in X-axis , you should specified the “ValueType” as Datetime. And please follow the below online sample link for your reference. 
To know more details about date time axis labels, please follow the below link:  
      II.         If you want to show numeric values without decimal value,  you should specified the “ValueType” as Double and also set the interval as “1”. 
And for example primary x axis range(Min-2010, Max-2016) by setting the interval as “1” , avoided the decimal value shown on X-axis. 
For this, we have made sample for your reference and attached in the below location. 
And also please follow the online link below for show the numeric axis labels 
To know more details about numeric axis, please follow the below link 
     III.         If you want to show string values on x-Axis ,then you should specified “ValueType” as Category. 
Please follow the below online link for category axis labels 
To know more details about category axis, please follow the below link 
Please let us know if you have any concern. 
Saravana Kumar K 


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

or the page will be automatically redirected to 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