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.
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
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