Skip to main content
A newer version of this page is available. .

Series.TopNOptions Property

Gets or sets the Top N and Others series’ options.

Namespace: DevExpress.Xpf.Charts

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

Declaration

public TopNOptionsBase TopNOptions { get; set; }

Property Value

Type Description
TopNOptionsBase

Current “Top N” and “Others”settings.

Remarks

This is a dependency property.

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.
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.
TopNOptionsBase.OthersArgument Gets or sets the value that the aggregated “Others” point uses as the point’s argument.
PieSeries.OthersPointExplodedDistance Gets or sets the “Others” slice offset from the pie center.
See Also