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

TdxCustomChartControl.VisibleDiagrams Property

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

#Declaration

Delphi
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