Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Chart Control
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Providing Data
   [Expand]Appearance Customization
   [Expand]End-User Features
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Collapse]Examples
    [Expand]General
    [Collapse]Creating Charts
     [Expand]Providing Data
     [Collapse]Data Representation
       How to: Change the Display Format for Series Labels of a Pie Chart
       How to: Change the Display Format for Axis Labels
       How to: Change the Display Format for Axis Labels (Runtime Sample)
       How to: Show Currency Values in the Legend of a Pie Chart
       How to: Filter Data
       How to: Show N Top Points as a Single Section in a Pie Chart
       How to: Use Automatic Date-Time Scale Modes of an Axis
       How to: Obtain Values Calculated for Automatic Axis Date-Time Scale Modes
       How to: Create a Custom Summary Function
       How to: Exclude Weekends and Holidays from the Axis Scale
       How to: Specify the Appearance of the Pie Chart Using Its Pattern at Runtime
       How to: Display Qualitative Scale Values Sorted in a Custom Sort Order
       How to: Use Custom Measure Units in an Automatic Date-Time Scale Mode
       How to: Use Custom Measure Units in an Automatic Numeric Scale Mode
     [Expand]Appearance Customization
     [Expand]Series Views
    [Expand]Chart Elements
    [Expand]End-User Interaction
    [Expand]Producing Output
   [Expand]Additional Resources
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

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

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.

    The following steps demonstrate how to aggregate some of the Pie series points into a single slice.

  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.

    The key option is the TopNOptions.Mode property, which allows you to choose from three different modes in which the TopN feature can be implemented:

    Count
    This setting determines that the defined number of series points should be aggregated into the single slice.

    After you set the TopNOptions.Mode property to Count, define the number of series points not to be aggregated, via the TopNOptions.Count property. The result is shown in the following image.

    ThresholdValue
    This setting determines that series points are aggregated into a single slice, if their values exceed the threshold value, determined by the TopNOptions.ThresholdValue property.

    ThresholdPercent
    This setting determines that series points are aggregated into a single slice, if their values exceed a certain percentage threshold, relative to the series points' overall value. The TopNOptions.ThresholdPercent property determines the threshold percent.

    Note

    You can completely exclude the aggregated points from the chart, by disabling the TopNOptions.ShowOthers property.

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"

Expanded See Also

How would you rate this topic?​​​​​​​