The ChartDataRelationDialog class allows the user to prepare a ChartFrame object to display data from a data relation defined in a mail merge data source. The dialog lets the user select the parent and child tables which form the data relation and two data columns in the child table which are used as the x-axis label text and the actual data. The chart is manipulated by this dialog as follows: First, all existing chart areas except one are removed. Then all existing "series" except one which belongs to that chart area are removed. Afterwards the ChartFrame object is named after the child table in the selected data relation so data can be assigned properly during the mail merge process. Then the remaining chart area is named after the child table column containing the axis label text and the series inside that chart area is named after the child table column containing the actual data. The ChartDataRelationDialog is a modal dialog box which must be shown with the EditDataRelationsDialog.ShowDialog method.

Syntax

public class ChartDataRelationDialog : System.Windows.Forms.Form
Public Class ChartDataRelationDialog
  Inherits System.Windows.Forms.Form

Introduced: X15.

Constructors

Constructor Description
ChartDataRelationDialog Creates a ChartDataRelationDialog object for the specified DocumentServer.DataSources.DataSourceManager.