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





Gets the list with the annotations of this series.

Namespace: MindFusion.Charting.Wpf
Assembly: MindFusion.Charting.Wpf

 Syntax

C#  Copy Code

public AnnotationsCollection Annotations { get; }

Visual Basic  Copy Code

Public ReadOnly Property Annotations As AnnotationsCollection

 Property Value

An instance of the AnnotationsCollection class.

 Remarks

Create an Annotation object for each Annotation you want to show at the bar chart. Add the annotations to the Annotations property.

 Example

The following code creates a new Annotation for the bar with index 0 (the first bar on the chart). It is displayed as a point at the location of 10 inside the bar and has a label. The Annotation point is painted in green.

C#  Copy Code

Annotation annotation1 = new Annotation();
annotation1.Index = 0;
annotation1.Label = "Opening notes";
annotation1.Value = 10.0;
annotation1.AnnotationType = AnnotationType.Point;
annotation1.Fill = Brushes.Green;
annotation1.Stroke = Brushes.Green;
barSeries1.Annotations.Add(annotation1);

Visual Basic  Copy Code

Dim annotation1 As New Annotation()
annotation1.Index = 0
annotation1.Label = "Opening notes"
annotation1.Value = 10.0
annotation1.AnnotationType = AnnotationType.Point
annotation1.Fill = Brushes.Green
annotation1.Stroke = Brushes.Green
barSeries1.Annotations.Add(annotation1)

 See Also

BarSeries Members
BarSeries Class
MindFusion.Charting.Wpf Namespace