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

How to add gaps between segments in a pyramid or funnel series?

Platform: WinRT |
Control: SfChart |
Published Date: November 19, 2014 |
Last Revised Date: June 27, 2019 |
.NET Framework: 4.5 |
Product Version: 12.1.0.43

You can define the gaps between the segments of a pyramid or funnel Series. 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;

Screenshot

Funnel chart with space between segments in WPF

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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