Enabling Weighted Slices
Send Feedback

Glossary Item Box

Topic Overview

Purpose

This topic provides an introductory overview of enabling weighted slices on the IGFunnelChartView control and demonstrates its configuration using a code example.

In this topic


Introduction

Weighted slices summary

By default, the IGFunnelChartView uses a uniform slice display, rendering all of the funnel slices with equal height, whereas weighted slices allow you to render your data using a slice whose height is proportionate to its value. To change from the uniform slice display to weighted slices, set the funnelSliceDisplay property to the IGFunnelSliceDisplayWeighted enumeration value.

The IGFunnelChartView using weighted slices is illustrated below.


Weighted Slices on the IGFunnelChartView – Code Example

Description

The following code sets the funnelSliceDisplay property to IGFunnelSliceDisplayWeighted thereby enabling weighted slices on the IGFunnelChartView.

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#:

IGFunnelChartView funnel = new IGFunnelChartView();
//Configure the funnel
funnel.FunnelSliceDisplay = IGFunnelSliceDisplay.Weighted;
this.View.Add(funnel);

In Objective-C:

IGFunnelChartView *funnel = [[IGFunnelChartView alloc] init];
//Configure the funnel
funnel.funnelSliceDisplay = IGFunnelSliceDisplayWeighted;
[self.view addSubview:funnel];

Related Content

Topics

The following topic provides additional information related to this topic.

Topic

Purpose

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