Version

Getting Started with UltraCategoryChart

Purpose

This topic explains using a code example how to add the UltraCategoryChart control to Windows Forms applications.

Adding UltraCategoryChart to the Windows Forms application

Introduction

The following procedure demonstrates adding the UltraCategoryChart to Windows Forms applications.

Preview

The following is a screenshot of the UltraCategoryChart

categorychart walkthrough 01.png

Requirements

Following are the general requirements for adding the UltraCategoryChart control.

Add the following Infragistics assemblies to your main project:

  • Infragistics.Win.DataVisualization.UltraDataChart.dll

  • Infragistics.Win.DataVisualization.Shared.dll

  • Infragistics.Win.Portable.Core.dll

In C#:

using Infragistics.Win.DataVisualization;

In VB:

Imports Infragistics.Win.DataVisualization

Overview

Following is a conceptual overview of the process:

1. Adding the UltraCategoryChart control to Windows Forms applications

2. Verifying the results

Steps

The following procedure takes you through the steps necessary for adding the UltraCategoryChart control to a page.

1. Add the UltraCategoryChart control to the page.

The following code demonstrates adding the UltraCategoryChart control with the minimum code and property settings required for display. The below code sample uses the Sample Energy Data resource.

In Visual Basic:

Dim categoryChart As New UltraCategoryChart()
categoryChart.DataSource = data
Me.Controls.Add(categoryChart)

In C#:

var categoryChart = new UltraCategoryChart();
categoryChart.DataSource = data;
this.Controls.Add(categoryChart);

2. Verify the results.

Build and run your project to verify the result. If you have implemented the steps correctly, the displayed UltraCategoryChart should look like the one in the Preview section above.

Related Content

Topics

The following topics provide additional information related to this topic:

Topic Purpose

This topic describes in detail how to bind the control to data.

This topic provides a conceptual overview of the Category Chart control.