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

x-axis of chart starts at 1 while minim is set to 0

Thread ID:





145779 Jul 8,2019 11:54 AM UTC Jul 10,2019 05:15 AM UTC ASP.NET Core - EJ 2 3
Tags: Charts
Asked On July 8, 2019 11:54 AM UTC

I have a chart where the xaxis is defines as :

<e-chart-primaryxaxis valueType="Category" labelFormat="y" edgeLabelPlacement="Shift" interval="5" minimum="0" maximum="75"></e-chart-primaryxaxis>

The x-axis labels are 1,6,11,... why does it not start at 0 ?
Is I switch the minimum to -1 the labels are -1, 5, 10, 15, ...

The desired labels are 0, 5, 10, 15, ....

Any suggestions ?

Baby Palanidurai [Syncfusion]
Replied On July 9, 2019 08:53 AM UTC

Hi Johnny, 
Greetings from Syncfusion. 
We have analyzed your query with provided information. We have tried to replicate the reported scenario at our end. Unfortunately we are unable to reproduce the reported issue. We have attached a sample which is used by testing. Please find below sample, 
So kindly check the above sample and revert us with following information which will be more helpful for further analysis and provide you the solution sooner. 
  • Please share your sample (or) code snippet.
  • Share your datasource file.
  • Try to reproduce the reported issue in the above sample
  • Share your product version

Replied On July 9, 2019 02:39 PM UTC

I did not interpreted the meaning of interval, min, max correct. In case of category it is the number of categories and not the actual value in the category.
Thx for the input.

Baby Palanidurai [Syncfusion]
Replied On July 10, 2019 05:15 AM UTC

Hi Johnny, 
Most welcome. Yes, category axis are used to represent, the string values instead of numbers. Chart renders based on the index values. Category axis default interval value is 1. Also here we have attached category axis ug link and demo link for your reference. Please find the below link, 
Kindly revert us, if you need further assistance. 


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