Skip to main content

TcxGridChartView.ActiveDiagram Property

Specifies the diagram which will be displayed (or active) within the View.

Declaration

property ActiveDiagram: TcxGridChartDiagram read; write;

Property Value

Type
TcxGridChartDiagram

Remarks

The chart displays a single diagram at a time. The diagram which is currently displayed within the View (its Active property is set to True) is called active. Set the ActiveDiagram property to specify the diagram which will be active within the View. In order to make the specified diagram active its Enabled property needs to be set to True. When the active diagram is changed the OnActiveDiagramChanged event is fired. When the ActiveDiagram property is set to nil the first enabled diagram within the View’s Diagrams collection is activated and displayed within the View. In this case the OnActiveDiagramChanged event is not raised.

Note

To activate a specific diagram at design time, you can either choose the required diagram from the list of the available diagrams via the ActiveDiagram property in the Object Inspector window, or select the one using the Chart View’s diagram selector.

See Also