Bewerken

Delen via


Annotation.Y Property

Definition

Gets or sets the Y coordinate of the annotation.

public:
 virtual property double Y { double get(); void set(double value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.DoubleNanValueConverter))]
public virtual double Y { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.DataVisualization.Charting.DoubleNanValueConverter))>]
member this.Y : double with get, set
Public Overridable Property Y As Double

Property Value

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

Attributes

Remarks

The Y 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 or AxisY properties.

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

Applies to