Dundas Chart for Windows Forms
Using the Chart & Data Wizard™
See Also Send comments on this topic.
Getting Started > Using the Chart & Data Wizard™



Glossary Item Box

Overview

Dundas Chart for Windows Forms comes with the Dundas Chart & Data Wizard™ shown in Figure 1 below. This wizard allows you to create many kinds of charts in a quick and easy manner, with a minimum of coding required. In addition to creating beautiful charts, the Dundas Chart & Data Wizard™ acts as an educational tool, and can be used at design-time to create your charts, or at run-time by your end-users. This article discusses how to work with the Dundas Chart & Data Wizard™.

 


Figure 1: The Dundas Chart & Data Wizard™.

 

Displaying the Wizard at Design-Time

The Chart & Data Wizard™ is displayed at design-time when:

Displaying the Wizard at Run-Time

To display the wizard at run-time:

  1. Add a reference to the DundasChartWizard.dll.
  2. Create an instance of the DundasChartWizardForm.
  3. Initialize the chart control reference, and optionally load data from the chart into the wizard using the SetChartControl method. If the second parameter is set to false, then the existing chart data will not be used, instead the wizard will use default chart values.
  4. Show the wizard form.

Example

This example demonstrates how to display the wizard for the end-user to manipulate, and load the existing Chart data into the wizard.

Visual Basic Copy Code
Imports Dundas.Charting.WinControl
 ...
 
Dim wizardForm As New Dundas.Charting.Wizard.DundasChartWizardForm()
wizardForm.SetChartControl(Me.chart1, True)
wizardForm.ShowDialog(Me)

C# Copy Code
using Dundas.Charting.WinControl;
  ...
  
Dundas.Charting.Wizard.DundasChartWizardForm wizardForm = new Dundas.Charting.Wizard.DundasChartWizardForm();
wizardForm.SetChartControl(this.chart1, true);
wizardForm.ShowDialog(this);

 

How to Use the Wizard

The selections that you make in the wizard, while in the Visual Studio's designer, can by applied to the charting control by clicking on the Apply button. The Cancel button is used to cancel any selections made in the wizard, and the Finish button is used to apply all selections made within the wizard, then exit the wizard.

The wizard has a number of tabbed pages that you can use as you design your chart. The content on these pages will vary slightly according to the type of chart being designed and created.

 

The following is a listing of the pages used by the wizard to design a chart:

 

Points to Note While Working With the Wizard

See Also

©2009. All Rights Reserved.