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

ColumnSeries Spacing in code

Thread ID:





128596 Jan 31,2017 11:55 AM UTC Feb 1,2017 05:22 AM UTC WPF 1
Tags: SfChart
Asked On January 31, 2017 11:55 AM UTC

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 05:22 AM UTC

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.

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