Skip to main content

AxisRange.MaxValue Property

Specifies the upper limit of the axis range.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

[TypeConverter(typeof(AxisValueTypeConverter))]
[XtraSerializableProperty]
public object MaxValue { get; set; }

#Property Value

Type Description
Object

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

#Remarks

Use the AxisRange.MinValue and MaxValue properties to limit the visible range of an axis by two values.

The default y-axis range A custom y-axis range
axis-range-default axis-range-custom

To obtain actual values of these properties, use the AxisRange.ActualMinValue and AxisRange.ActualMaxValue properties.

If the MaxValue property is not explicitly set (e.g. in XAML), its value is calculated automatically. And once explicitly set, you can subsequently make it automatic again by calling the AxisRange.SetAuto method at runtime.

Dealing with Qualitative or DateTime scale types, you can determine the maximum and minimum values more precisely (with a Double value) via the AxisRange.MinValueInternal and AxisRange.MaxValueInternal properties.

#Examples

This example demonstrates how you can define a custom axis range (both in measurement units appropriate for the axis scale type, and using their internal Double representation).

See Also