Gets or sets the value that indicates where to draw this Annotation.
Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight
C#
![]() |
---|
public double Value { get; set; } |
Visual Basic
![]() |
---|
Public Property Value As Double |
A double value. Default is 0.0
The Value property specifies the location of the Annotation in terms of bar value. If the property is set to 10 and the bar represents a value of 20, the annotation will be drawn at its center.
The following example adds an annotation as a point at value 10 to the first bar in a BarSeries series.
C#
![]() |
---|
Annotation annotation1 = new Annotation(); annotation1.Index = 0; annotation1.Label = "Break"; annotation1.Value = 10.0; annotation1.AnnotationType = AnnotationType.Point; annotation1.Fill = new SolidColorBrush(Colors.Green); annotation1.Stroke = new SolidColorBrush(Colors.Gre en); series.Annotations.Add(annotation1); |
Visual Basic
![]() |
---|
Dim annotation1 As Annotation = New Annotation annotation1.Index = 0 annotation1.Label = "Break" annotation1.Value = 10 annotation1.AnnotationType = AnnotationType.Point annotation1.Fill = New SolidColorBrush(Colors.Green) annotation1.Stroke = New SolidColorBrush(Colors.Green) series.Annotations.Add(annotation1) |