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

White space around chart

Thread ID:

Created:

Updated:

Platform:

Replies:

143070 Mar 4,2019 03:11 AM UTC Mar 4,2019 12:18 PM UTC ASP.NET MVC - EJ 2 1
loading
Tags: Chart
jsu
Asked On March 4, 2019 03:11 AM UTC

Hi Team,

How can I get rid of white spaces around chart( for instance line chart) when the browser window size is reduced?
Please help.




Thanks in advance.

Dharanidharan Dharmasivam [Syncfusion]
Replied On March 4, 2019 12:18 PM UTC

Hi Jsu, 
 
Greetings from Syncfusion. 
 
We have analyzed your query. We suspect that you have mentioned to reduce around white space means chart default margin size(10px). If this is your query, you can reduce the space using margin property of the chart. Using this property we can align top, bottom, right and left spaces of the chart container. Please find below code snippet for how to use margin in chart. 
 
Code Snippet: 
 
@Html.EJS().Chart("container").Margin(mr=> mr.Left(0).Top(0).Bottom(0).Right(0))  
   //other configurations 
.Render(); 
 
Screenshot: 
 
 
Kindly check that above sample and revert us back with more information about your requirement on which space you want to remove, if this is not your requirement. 
 
Regards, 
Dharani. 


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

;