DataPointCustomProperties.AxisLabel Property

.NET Framework (current version)
 

Gets or sets the text of the X-axis label for the data point, series or an empty point. This property is only used if a custom label has not been specified for the relevant Axis object.

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

[BindableAttribute(true)]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
public virtual string AxisLabel { get; set; }

Property Value

Type: System.String

The text of the X-axis label.

This property can only be set at run time for a Series object. If you set this property or a Series object, all of its data points will use this label.

If the AxisLabel property is not set and a custom label has not been specified, an axis label will be generated automatically using the axis scale.

Empty point labels are set using the EmptyPointStyle property.

.NET Framework
Available since 4.0
Return to top
Show: