Back to Devexpress

XYDiagram Class

corelibraries-devexpress-dot-xtracharts-a3fd0f42.md

latest4.1 KB
Original Source

XYDiagram Class

Represents a diagram that is used to plot all 2D XY series, except for the Gantt and Radar and Polar series views.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public class XYDiagram :
    XYDiagram2D
vb
Public Class XYDiagram
    Inherits XYDiagram2D

Remarks

The XYDiagram class represents the diagram type used to plot series which are displayed using the X and Y axes. For the complete list of supported series views, refer to XY-Diagram.

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.

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.

Example

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.

csharp
((DevExpress.XtraCharts.XYDiagram)chartControl1.Diagram).Rotated = true;
vb
CType(chartControl1.Diagram, DevExpress.XtraCharts.XYDiagram).Rotated = True

Implements

IXtraSerializable

IXYDiagram2D

IXtraSupportDeserializeCollectionItem

Inheritance

Object ChartElement Diagram XYDiagram2D XYDiagram GanttDiagram

See Also

XYDiagram Members

Diagram

Gantt Diagram

Primary and Secondary Axes

DevExpress.XtraCharts Namespace