TdxChart.AddDiagram(TdxChartDiagramClass,string) Method
In This Article
#Declaration
Delphi
function AddDiagram(ADiagramClass: TdxChartDiagramClass; const ACaption: string = ''): TdxChartCustomDiagram; overload;
#Parameters
Name | Type | Description |
---|---|---|
ADiagram |
Tdx |
Specifies the type of the created diagram. Pass a reference to a Tdx |
ACaption | string | Optional. Specifies the created diagram’s title |
#Returns
Type | Description |
---|---|
Tdx |
The created diagram. Cast the returned object to the [Tdx |
#Remarks
The AddDiagram
function can create diagrams of any supported type. The ADiagramClass
parameter accepts a reference to one of the following TdxChartCustomDiagram class descendants:
- TdxChartXYDiagram
- An XY diagram in the Chart control.
- TdxChartSimpleDiagram
- A simple diagram in the Chart control.
Important
Do not call the Add
function in your code. To create diagrams in the Chart control, call its Add
See Also