In addition to the settings inherited from the base Diagram and XYDiagram2D classes, the XYDiagram class implements specific properties that allow you to control the following characteristics of a diagram.
- settings of the primary X and Y axes (XYDiagram.AxisX, XYDiagram.AxisY);
- settings of the secondary X and Y axes (XYDiagram.SecondaryAxesX, XYDiagram.SecondaryAxesY);
- direction in which a diagram and its axes are rotated (XYDiagram.Rotated).
An object of the XYDiagram type can be accessed via the ChartControl.Diagram property of a chart control that displays series compatible with this diagram type.
The following code shows how to change the XYDiagram.Rotated property value. Note that this code is valid only if the current chart’s diagram (returned by its ChartControl.Diagram or WebChartControl.Diagram property) is an XYDiagram or its descendant.