Annotation.X Property

.NET Framework (current version)
 

Gets or sets the X coordinate of an annotation.

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

public virtual double X { get; set; }

Property Value

Type: System.Double

A double value that represents the X coordinate position of the annotation.

The X coordinate of an annotation is specified in relative chart coordinates or in axes coordinates. Relative chart coordinates are used by default.

To use axes coordinates, anchor an annotation to a data point using the AnchorDataPoint property, or set the annotation axes using the AxisX and AxisY properties.

Set the X position to NaN to automatically calculate position when the annotation has been anchored using the AnchorDataPoint property or the AnchorX and AnchorY properties.

.NET Framework
Available since 4.0
Return to top
Show: