Axis.CrossPosition Property
Gets or sets a value that specifies where the value axis crosses the category axis on a 2-D chart.
Namespace: DevExpress.Spreadsheet.Charts
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
AxisCrossPosition | An AxisCrossPosition enumeration value specifying the crossing point location. |
Available values:
Name | Description |
---|---|
BetweenTickMarks | Specifies that the value axis should cross the category axis between data markers. |
OnTickMarks | Specifies that the value axis should cross the category axis at the midpoint of a category. |
Remarks
Use the CrossPosition property to specify whether the value axis should cross the category axis between categories or on categories. Note that this property affects the appearance of a chart only if it is set for the value axis.
The table below shows how the CrossPosition property works (the chart is displayed in Microsoft® Excel®).
chart.PrimaryAxes[1].CrossPosition = AxisCrossPosition.OnTickMarks | chart.PrimaryAxes[1].CrossPosition = AxisCrossPosition.BetweenTickMarks |
---|---|
Note
The CrossPosition
property has no effect on the visual appearance of a chart when the document is loaded in the SpreadsheetControl. However, the property can be accessed in code, exported in supported formats and visualized in Microsoft Excel.