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

Remove Y axis labels space

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello,

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-chart-primaryyaxis>
     <e-labelstyle color="transparent"></e-labelstyle>
     <e-majorgridlines width="0"></e-majorgridlines>
     <e-majorticklines width="0"></e-majorticklines>
     <e-linestyle width="0"></e-linestyle>
</e-chart-primaryyaxis>

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:  
Index.cshtml 
 
<ejs-chart id="container"> 
  <e-chart-primaryyaxis> 
      <e-labelstyle size="0px"/> 
  </e-chart-primaryyaxis>   
 
  //other config 
</ejs-chart> 

Screenshot: 
 

We have attached sample link with this. 

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


Regards, 
Kesavan 


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.   
   
Thanks,   
Srihari M 
 


CONFIRMATION

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