TdxChart.AddDiagram<T>(string) Method
Declaration
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