Skip to main content

AxisRange.MaxValue Property

OBSOLETE

This property is obsolete now. Use AxisBase.VisualRange.MaxValue instead.

Gets or sets the maximum value to display on an Axis. This may not be the same as the maximum value of the series associated with this axis.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v24.1.dll

NuGet Package: DevExpress.Charts

Declaration

[Browsable(false)]
[NonTestableProperty]
[Obsolete("This property is obsolete now. Use AxisBase.VisualRange.MaxValue instead.")]
[TypeConverter(typeof(AxisRangeMaxValueTypeConverter))]
[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
public virtual object MaxValue { get; set; }

Property Value

Type Description
Object

A Object that specifies the maximum value to display on an axis.

Remarks

Use the MaxValue property to specify or obtain the maximum value to display on an axis.

Note that the MaxValue and AxisRange.Auto properties are interdependent: changing one property will reset the other property.

Note

Dealing with Qualitative or DateTime scale types, it may be required to determine the maximum value more precisely than allowed by these scale types. For example, for an axis whose AxisBase.DateTimeMeasureUnit property is set to Year, it may be required to restrict its range by a Month. For this, you can use the AxisRange.MaxValueInternal property, which stores the internal, numeric representation of Qualitative and DateTime values.

For more information, refer to Visual Ranges and Whole Ranges .

Example

This example demonstrates how the appearance of a pane‘s scroll bar can be customized.

Note that for a pane, it’s possible to individually adjust the position and visibility of its X and Y-axis’ scroll bars.

ScrollBarOptions scrollBarOptions = diagram.DefaultPane.ScrollBarOptions;

scrollBarOptions.BackColor = Color.White;
scrollBarOptions.BarColor = Color.Blue;
scrollBarOptions.BorderColor = Color.Navy;
scrollBarOptions.BarThickness = 15;
scrollBarOptions.XAxisScrollBarAlignment = ScrollBarAlignment.Far;
scrollBarOptions.XAxisScrollBarVisible = true;
See Also