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

White space around chart

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.

1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team 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 
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. 

Live Chat Icon For mobile
Up arrow icon