Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Series.TopNOptions Property

Gets or sets the Top N and Others series’ options. This is a dependency property.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public TopNOptionsBase TopNOptions { get; set; }

#Property Value

Type Description
TopNOptionsBase

Current “Top N” and “Others”settings.

#Remarks

Use the following markup to configure the “Top N” feature:

<dxc:PieSeries2D ArgumentDataMember="Name"
                 ValueDataMember="Area"
                 LegendTextPattern="{}{A}"
                 LabelsVisibility="True">
    <dxc:PieSeries2D.TopNOptions>
        <dxc:CountTopNOptions Count="5"
                              ShowOthers="True"
                              OthersArgument="Others"
                              dxc:PieSeries.OthersPointExplodedDistance="0.05"/>
    </dxc:PieSeries2D.TopNOptions>
</dxc:PieSeries2D>

The code above uses the following properties:

Property Description
Series.TopNOptions Gets or sets the Top N and Others series’ options. This is a dependency property.
CountTopNOptions The “Top N and Others“ feature options that selects first N largest points.
CountTopNOptions.Count Gets or sets the number of points with the largest values that the series should show.
TopNOptionsBase.ShowOthers Gets or sets the value indicating whether a series should show the aggregated “Others” point. This is a dependency property.
TopNOptionsBase.OthersArgument Gets or sets the value that the aggregated “Others” point uses as the point’s argument. This is a dependency property.
PieSeries.OthersPointExplodedDistance Gets or sets the “Others” slice offset from the pie center.
See Also