A newer version of this page is available. Switch to the current version.

ChartWizard.ShowDialog() Method

Invokes the Chart Wizard for the chart control.

Namespace: DevExpress.XtraCharts.Wizard

Assembly: DevExpress.XtraCharts.v18.2.Wizard.dll


public DialogResult ShowDialog()


Type Description

A DialogResult enumeration member that indicates the return value of a dialog box.


Use this method to allow the user to construct the chart, customize its appearance and adjust the layout.

The ChartWizard uses the standard Look And Feel and Skinning, unless the UserLookAndFeel object is specified as a constructor parameter.


This example demonstrates how to show the Chart Wizard at runtime with a pre-filled data source. This may be useful for those applications when a chart is mostly configured by an end-user.

To run the Chart Wizard at runtime you should use the ChartWizard.ShowDialog method of a ChartWizard object. The following code demonstrates how to create a chart object, bind it to a data source, then let an end-user adjust the chart’s settings via the wizard, and show a form with a chart in it.

using System.Windows.Forms;
using DevExpress.XtraCharts;
using DevExpress.XtraCharts.Wizard;
// ...

// Create a chart.
ChartControl chart = new ChartControl();

// Set its data source.
// You can set any other specific options for the chart here.
chart.DataSource = dataSet11;

// Create a ChartWizard for a new ChartControl
ChartWizard wiz = new ChartWizard(chart);

// Invoke the chart's wizard.

// Create a form, add the chart to it, and display the form.
Form form = new Form();
See Also