This documentation is archived and is not being maintained.

Axis::Interval Property

Gets or sets the interval of an axis.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

[PersistenceModeAttribute(PersistenceMode::Attribute)]
[BindableAttribute(true)]
public:
property double Interval {
	double get ();
	void set (double value);
}

Property Value

Type: System::Double
A double value that represents the interval of an axis. The default value is "Auto", which is represented by a value of zero (0).

This property determines how often the labels and major tick marks and grid lines associated with the axis are drawn if the Interval property value of a label, tick mark, or grid line is set to NaN, which signifies that it is not set.

The Interval property of a major tick mark, grid line or label of the axis has priority over the Interval property setting of the Axis object.

A value of zero represents an "Auto" value. This Interval property cannot be set to NaN. If you assign this property a value of NaN, a value of zero will be used instead.

Note   The minor grid lines and tick marks of an axis never use this property for their interval.

The interval type of the axis is determined by the IntervalType property.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: