Articles in this section
Category / Section

How to add gaps between segments in a pyramid or funnel series of WPF Chart (SfChart)?

1 min read

You can define the gaps between the segments of a pyramid or funnel series in 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 fall between 0 and 1. In the following sample, the GapRatio value is 0.1 or 10%, in 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;

 

WPF Funnel Chart with Space between Segments

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied