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. Image for the cookie policy date
close icon

ColumnSeries Spacing in code

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?

1 Reply

DA Devi Aruna Maharasi Murugan Syncfusion Team 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); 

Live Chat Icon For mobile
Up arrow icon