AxisRange.SideMarginsEnabled Property
Specifies whether a space should be left between the outermost series point and the diagram’s edge.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true if the axis range is automatically widened; otherwise, false. |
Remarks
Use the SideMarginsEnabled property for an axis to automatically extend its range, so that indents are preserved on the both ends of the axis.
Note
When using the Numerical scale type, it is possible to change side margins only for automatically calculated axis ranges.
The following table illustrates how the SideMarginsEnabled property works.
SideMarginsEnabled = false | SideMarginsEnabled = true |
---|---|
Example
The following example demonstrates how to change the AxisRange.SideMarginsEnabled
property value.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-2d-area-chart-e1633.
<dxc:XYDiagram2D.AxisX>
<dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SideMarginsEnabled 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.