How to add gaps between segments in a pyramid or funnel series in WPF Chart (SfChart)?
This article explains how to define gaps between the segments of a pyramid or funnel series in a WPF Chart (SfChart). By default, there is no space between the segments, but you can add space by using the GapRatio property in both series. The GapRatio values range between 0 and 1, where 0 represents no gap and 1 represents a full gap. The example below demonstrates setting a GapRatio value of 0.1 (or 10%) in a Funnel Series.
XAML
<!--To add gaps between segments --> <Syncfusion:FunnelSeries x:Name="funnel" Palette="Metro" StrokeThickness="3" ItemsSource="{Binding CompanyDetails}" XBindingPath="CompanyName" YBindingPath="CompanyTurnOver" GapRatio="0.1"> <Syncfusion:FunnelSeries.AdornmentsInfo> <Syncfusion:ChartAdornmentInfo ShowLabel="True" /> </Syncfusion:FunnelSeries.AdornmentsInfo> </Syncfusion:FunnelSeries>
C#
// Add space between segments. SfChart chart = new SfChart(); FunnelSeries funnel = new FunnelSeries(); funnel.GapRatio = 0.1;
Output
Conclusion
I hope you enjoyed learning about how to add gaps between segments in a pyramid or funnel series in WPF Chart(SfChart).
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 comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!