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

Removing all the margins

Thread ID:





123216 Feb 26,2016 10:40 AM UTC Mar 7,2016 12:24 PM UTC WPF 3
Tags: SfSurfaceChart
Jeremie Clos
Asked On February 26, 2016 10:40 AM UTC

Is there an easy way to remove all the internal margins of this control? I need to embed it in another control and the way the SurfaceChart arbitrarily adds an internal padding is making it frustratingly difficult.

Santhiya Arulsamy [Syncfusion]
Replied On February 29, 2016 12:20 PM UTC

Hi Jeremie,

Thanks for contacting Syncfusion Support.

The space around the surface chart are used to have smooth rotation in the chart. We can adjust this space by setting the ZoomLevel property in the SurfaceChart. If you set the zoom the surface in full size, we can't rotate smoother and also unable to view the chart clearly. Please find the following code sample for your reference.


<Syncfusion:SfSurfaceChart  x:Name="surface"



Santhiya A.

Jeremie Clos
Replied On March 4, 2016 12:47 PM UTC

Even by manipulating the zoom, there is still a large gap. I am trying to overlay a SfChart with a SurfaceChart in order to plot points as well as their zone of influence, and I can see that even with the same size, same alignment and same min/max on the axes the Y axis of the SfChart and the Y axis of the SurfaceChart are not synchronized.

Sumathi Jayaraj [Syncfusion]
Replied On March 7, 2016 12:24 PM UTC

Hi Jeremie,

Thanks for the update.

We are able to synchronize the SfChart with SfSurfaceChart by mapping surface chart’s view port size to SfChart in surface chart’s size changed event. We have prepared a sample for your requirements and it can be downloaded from the following location.

Sample : SurfaceSample

Sumathi J


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