corelibraries-devexpress-dot-xtracharts-dot-xydiagramseriesviewbase-c4830367.md
Specifies the Y-axis, that is used to plot the current series on a XYDiagram.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public AxisYBase AxisY { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property AxisY As AxisYBase
| Type | Description |
|---|---|
| AxisYBase |
An AxisY or an SecondaryAxisY object, that is the Y-axis for the current series.
|
The AxisY class inherits properties and methods from the base Axis class which implements the common axes functionality, and represents a primary axis of values within a chart control in 2D series (except for Swift Plot and Swift Point).
The SecondaryAxisY class is derived from the same base class and represents the secondary axes on a diagram. The collection of secondary axes is available via the XYDiagram.SecondaryAxesY property.
Any data series of an XY-type can be plotted with a primary axis or any of the secondary axes.
For more information, refer to Primary and Secondary Axes.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AxisY property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-charts-plot-xy-series-with-histogram/CS/Form1.cs#L49
diagram.SecondaryAxesY.Add(secondaryAxisY);
lineView.AxisY = secondaryAxisY;
SecondaryAxisX secondaryAxisX = new SecondaryAxisX();
Dim chartSeries As Series = chartContext.GetControlSeries(dashboardSeries).FirstOrDefault()
Dim chartAxis = TryCast(chartSeries.View, XYDiagramSeriesViewBase)?.AxisY
If chartAxis IsNot Nothing Then
winforms-charts-plot-xy-series-with-histogram/VB/Form1.vb#L76
diagram.SecondaryAxesY.Add(secondaryAxisY)
lineView.AxisY = secondaryAxisY
Dim secondaryAxisX As SecondaryAxisX = New SecondaryAxisX()
Dim chartSeries As DevExpress.XtraCharts.Series = chartContext.GetControlSeries(dashboardSeries).FirstOrDefault()
Dim chartAxis = (TryCast(chartSeries.View, DevExpress.XtraCharts.XYDiagramSeriesViewBase))?.AxisY
If chartAxis IsNot Nothing Then
See Also