Configuring the Others Pie Slice
Send Feedback

Glossary Item Box

Topic Overview

Purpose

This topic provides a conceptual overview of the Others pie slice in the IGPieChartView™ and demonstrates its configuration using a code example.

In this topic


Introduction

Other slice summary

Sometimes, the underlying data for the IGPieChartView control contains numerous small value items. In this case, illustrated in the following picture, the Others category permits automatic aggregation of several data values into a single slice.

The Others pie slice has three customizable properties. Use the othersCategoryText property to customize the caption the default caption being “Others”. You can assign the othersCategoryType property with one of the following enumerations:

  • IGOthersCategoryTypeNumber
  • IGOthersCategoryTypePercent

When using the enumeration value of IGOthersCategoryTypeNumber, causes the direct comparison of the slice’s value to the othersCategoryThreshold property’s value. However, using the enumeration value of IGOthersCategoryTypePercent places any pie slice value that is below the othersCategoryThreshold value, when compared against the total pie value into the Others category.


Configuring the Others Pie Slice – Code Example

Description

The code below sets the othersCategoryType property to IGOthersCategoryTypeNumber and the othersCategoryThreshold to 50 resulting in all slices containing a value below 50 grouped into the Others category.

Prerequisites

This code example requires the inclusion of the Chart framework, detail about how to add this framework can be found in the Adding the Chart Framework File topic.

Code

In C#:

IGPieChartView piechart = new IGPieChartView();
//...
piechart.OthersCategoryType = IGOthersCategoryType.IGOthersCategoryTypeNumber;
piechart.OthersCategoryThreshold = 50;

In Objective-C:

IGPieChartView *piechart = [[IGPieChartView alloc] init];
//...
piechart.othersCategoryType = IGOthersCategoryTypeNumber;
piechart.othersCategoryThreshold = 50;

Related Content

Topics

The following topics provide additional information related to this topic.

Topic

Purpose

The topics in this group cover enabling, configuring, and using the IGPieChartView control’s supported features.