How to customize the space between segments in WPF Chart (SfChart)?
Description
This article explains how to customize the spacing between segments in a WPF SfChart. This setting is useful for achieving a specific visual layout.
Solution
In a WPF SfChart you can customize the space between individual chart segments by setting the Spacing property of the base class ChartSeriesBase. The spacing value ranges from 0 to 1 and the default value is 0.2. Refer to the following code example.
XAML
<syncfusion:ColumnSeries Label="ColumnSeries" ItemsSource="{Binding Computers}" XBindingPath="Computer" YBindingPath="Year2013" Spacing="0.5" />
Output
Conclusion
I hope you enjoyed learning about how to zoom in and out of a WPF Chart in the scroll viewer.
You can refer to our WPF Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WPF Chart documentation to understand how to present and manipulate data.
For current customers, you can check out our WPF components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our WPF Chart and other WPF components.
If you have any queries or require clarifications, please let us know in the comment section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!