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.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
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