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

Constant width for plot area

Thread ID:





127105 Oct 26,2016 11:26 AM UTC Oct 28,2016 03:06 PM UTC WPF 3
Tags: SfChart
Asked On October 26, 2016 11:26 AM UTC

How to set the width of the plot-area (Chart area) in a SFChart?

Santhiya Arulsamy [Syncfusion]
Replied On October 27, 2016 10:30 AM UTC

 Hi Ndongo,

Thanks for contacting Syncfusion Support.

The size applied for the ChartArea based on the SfChart size (height and width). So, we are unable to set the size directly for Chart Area (plot area). In order to set the size for chart area you can use Height and Width property for SfChart.


Santhiya A 

Replied On October 27, 2016 05:35 PM UTC

Hello Santhiya

Thank you for the answer. However, the size of the plot area changes depending on the data which are Display and this means that the Alignment on the left side also changes depending on the width of the Y axis Label. I would like to have a freezed size for the plot. This only works when I set the Y axis to be collapsed.

Please advice.

Thank you

Sheik Syed Abthaheer M [Syncfusion]
Replied On October 28, 2016 03:06 PM UTC

Hi Ndongo,

Thanks for your update.

We can freeze the chart area size from dynamic axis label by using LabelExtent property of chart axis. The axis label panel will take LabelExtent value as its available width when axis labels width is lesser than. We have to set approximate width size for axis as in below code snippet.


         <chart:NumericalAxis  LabelExtent="100"/> 

We have prepared the sample based on this. Please find the sample below

Sample: LabelExtent 
M. Sheik


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