Series.TopNOptions Property
In This Article
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 |
---|---|
Top |
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. |
Gets or sets the Top N and Others series’ options. This is a dependency property. |
Count |
The “Top N and Others“ feature options that selects first N largest points. |
Count |
Gets or sets the number of points with the largest values that the series should show. |
Top |
Gets or sets the value indicating whether a series should show the aggregated “Others” point. This is a dependency property. |
Top |
Gets or sets the value that the aggregated “Others” point uses as the point’s argument. This is a dependency property. |
Pie |
Gets or sets the “Others” slice offset from the pie center. |
See Also