TdxChart.AddDiagram<T>(string) Method
In This Article
#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 Add
function template in your code. To create diagrams in the Chart control, use its Add
See Also