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

Remove Y axis labels space

Thread ID:





151099 Jan 30,2020 05:04 PM UTC Feb 3,2020 06:15 AM UTC ASP.NET Core - EJ 2 3
Tags: Charts
Fabrizio Alessandro
Asked On January 30, 2020 05:04 PM UTC


Is it possible to remove all the space at the left of the chart where normally there are the labels of the Y axis, and expand the chart in all the space available?

I have hidden the Y labels like this:

     <e-labelstyle color="transparent"></e-labelstyle>
     <e-majorgridlines width="0"></e-majorgridlines>
     <e-majorticklines width="0"></e-majorticklines>
     <e-linestyle width="0"></e-linestyle>

In the attachments there is an image that better explains which is the white space I would like to remove.

Thank you

Attachment: Chart_6b1670e0.zip

Kesavan Muthusamy [Syncfusion]
Replied On January 31, 2020 08:48 AM UTC

Hi Fabrizio, 
Greetings from Syncfusion. 

We have looked up query. For hiding the axis labels from the chart, you can set axis’s label size to zero pixel instead of setting transparency to the labels. This will be helpful to you to remove the unnecessary space behind the axis.  

Code snippet:  
<ejs-chart id="container"> 
      <e-labelstyle size="0px"/> 
  //other config 


We have attached sample link with this. 

Please let us know if you have any concerns about this. 


Fabrizio Alessandro
Replied On January 31, 2020 04:01 PM UTC

Thank you this is what I needed!

Srihari Muthukaruppan [Syncfusion]
Replied On February 3, 2020 06:15 AM UTC

Hi Fabrizio,  

Most welcome. Kindly get in touch with us, if you requires further assistance. We are always happy in assisting you.   
Srihari M 


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