Back to Devexpress

How to: Show N Top Points as a Single Section in a Pie Chart

windowsforms-6011-controls-and-libraries-chart-control-examples-creating-charts-data-representation-how-to-show-n-top-points-as-a-single-section-in-a-pie-chart.md

latest2.2 KB
Original Source

How to: Show N Top Points as a Single Section in a Pie Chart

  • Jan 23, 2019
  • 2 minutes to read

This tutorial demonstrates how to show a number of series points as an aggregation. In this example - as a single slice of a Pie chart. It’s the so-called Top N feature, which is intended to visually represent selected points of a series as a single point.

To learn how the “Top N” feature can be used, do the following.

  1. Create a simple unbound chart of the PieSeriesView type. For this example, we’ll use the chart created for the following tutorial: How to: Change the Display Format for Series Labels of a Pie Chart. It is shown in the following image.

  2. Select the Pie series, and in the Properties window, expand its SeriesBase.TopNOptions property. Then, set the TopNOptions.Enabled property to true.

  3. Now, the available options are visible. They are briefly described below.

To customize the text of the argument, which is shown instead of the real points’ arguments, use the TopNOptions.OthersArgument property. The following images demonstrate how this property works.

OthersArgument isn’t defined (default)OthersArgument = “Rest”

See Also

Display Top-N Values

How to: Explode Points of a Pie Chart