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.
Unfortunately, activation email could not send to your email. Please try again.

Constant width for plot area

Thread ID:

Created:

Updated:

Platform:

Replies:

127105 Oct 26,2016 07:26 AM Oct 28,2016 11:06 AM WPF 3
loading
Tags: SfChart
Ndongo
Asked On October 26, 2016 07:26 AM

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

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

 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.

Thanks,

Santhiya A 
 


Ndongo
Replied On October 27, 2016 01:35 PM

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 11:06 AM

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.

 

XAML: 
<chart:SfChart.SecondaryAxis> 
         <chart:NumericalAxis  LabelExtent="100"/> 
</chart:SfChart.SecondaryAxis> 


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

Sample: LabelExtent 
Regards,
M. Sheik
 


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.

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.

;