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 |
Remarks
A diagram is a pane designed to display and manage series in the Chart control.
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.
- TdxChartSimpleDiagram
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.
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).