MindFusion.Charting for Silverlight Programmer's Guide
BarSeries.Annotations Property
See Also
 






Gets the list with Annotation-s for the chart.

Namespace: MindFusion.Charting.Silverlight
Assembly: MindFusion.Charting.Silverlight

 Syntax

C#  Copy Code

public AnnotationsCollection Annotations { get; }

Visual Basic  Copy Code

Public ReadOnly Property Annotations As AnnotationsCollection

 Property Value

An empty AnnotationsCollection.

 Remarks

Create and add Annotation-s to this collection to mark important data or events at a chart.

 Example

The following example adds an annotation as a point at value 10 to the first bar in a BarSeries series.

C#  Copy Code
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.Green);
series.Annotations.Add(annotation1);
Visual Basic  Copy Code
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)

 See Also

BarSeries Members
BarSeries Class
MindFusion.Charting.Silverlight Namespace