Skip to main content

TdxCustomChartControl.VisibleDiagrams Property

Provides indexed access to all visible diagrams in the Chart control.

Declaration

property VisibleDiagrams[AIndex: Integer]: TdxChartCustomDiagram read;

Property Value

Type Description
TdxChartCustomDiagram

A visible diagram.

Cast the returned object to the TdxChartXYDiagram or TdxChartSimpleDiagram class depending on the actual diagram type to access all public API members. Call the VisibleDiagrams.ClassType function to identify the target diagram type.

Remarks

A diagram is a pane designed to display and manage series in the Chart control.

VCL Chart Control: Series in XY Diagrams

Use the VisibleDiagramCount property to obtain the number of diagrams accessible through the VisibleDiagrams property. To access both visible and hidden diagrams, use the Diagrams property.

Available Diagram Types

Cast the Diagrams property value to the corresponding diagram class to access all diagram type-specific properties and methods. The Chart control ships with the following diagram classes:

TdxChartXYDiagram

A diagram designed to display series using the axis of arguments (X-axis) and the axis of values (Y-axis). An XY diagram can plot Area, Bar, and Line series.

VCL Chart Control: An XY Diagram Example with Area, Bar, and Line Series

TdxChartSimpleDiagram

A diagram intended to plot Pie and Doughnut series.

VCL Chart Control: A Simple Diagram Example with Pie and Doughnut Series

Visible Diagram Indexes and Diagram Order

Indexes of visible diagrams determine their positions in the Chart control. You can change a diagram’s index to change the diagram display order.

VCL Chart Control: Diagram Indexes

Diagram Deletion

To delete a diagram, release it directly in code (call the Free procedure in Delphi or use the delete keyword in C++Builder).

See Also