Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxChart.AddDiagram<T>(string) Method

Creates a new diagram with the specified title in Delphi code.

#Declaration

Delphi
function AddDiagram<T: TdxChartCustomDiagram>(const ACaption: string = ''): T; overload;

#Parameters

Name Type Description
ACaption string

Optional. Specifies the created diagram’s title.

#Returns

Type Description
T

The created diagram.

#Remarks

The AddDiagram function template can create diagrams of any supported type. The T template parameter accepts the required diagram class from the following list:

TdxChartXYDiagram
An XY diagram in the Chart control.
TdxChartSimpleDiagram
A simple diagram in the Chart control.

Important

Do not use the AddDiagram function template in your code. To create diagrams in the Chart control, use its AddDiagram function template (in Delphi) or the corresponding diagram class constructor (in C++Builder).

See Also