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.

ColumnSeries Spacing in code

Thread ID:





128596 Jan 31,2017 06:55 AM Feb 1,2017 12:22 AM WPF 1
Tags: SfChart
Asked On January 31, 2017 06:55 AM

Hello. I have a question about spacing of columns in ColumnSeries. I can set it in XAML, but when I want to do it in code I cant see the property "Spacing", but only "SegmentSpacing" which isn't what I want. Is it possible to change Spacing in code?

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On February 1, 2017 12:22 AM

Hi Tim, 
Thanks for contacting Syncfusion Support. 
We can set spacing for series in code behind with the attached property Spacing and it can be set as shown in below code snippet, 
ColumnSeries Column = new ColumnSeries();         
ChartSeriesBase.SetSpacing(Column, 0.7); 


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.