Articles in this section
Category / Section

How to include or exclude outliers in WPF BoxAndWhisker Charts

2 mins read

This article explains how to include or exclude the outlier space by using the BoxAndWhisker type of WPF Chart. By default, it has been plotted with outlier space as shown in the following image.

WPF Chart Default Output

It has been achieved by using the ShowOutlier property in BoxAndWhisker series. The default value of ShowOutlier property is true. In order to remove outlier space, set false to

 ShowOutlier property as shown in the following code sample.

 

XAML

<Grid Margin="10">     
        <chart:SfChart x:Name="boxWhiskerChart" >
            <chart:SfChart.PrimaryAxis>
                <chart:CategoryAxis>
                </chart:CategoryAxis>
            </chart:SfChart.PrimaryAxis>            
 
            <chart:SfChart.SecondaryAxis>
                <chart:NumericalAxis/>
            </chart:SfChart.SecondaryAxis>
 
            <chart:BoxAndWhiskerSeries ShowOutlier=" False"
                                       ItemsSource="{Binding BoxWhiskerData}"  
                                       XBindingPath="Department" 
                                       YBindingPath="Age" >
            </chart:BoxAndWhiskerSeries>
        </chart:SfChart>
    </Grid>

Output

WPF Chart desired output

See also

How to customize box and whisker chart in WPF

How to customize the default outlier view in WPF

How to create a various customized chart in WPF

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