Annotation Problem
This discussion was imported from CodePlex
Death69 wrote at 2014-07-24 10:47:
Hi,
it's me again^^ I have a problem with Annotations.
I need 4 annotations for my plot, 2 RectangleAnnotations and 2 Arrowannotations. The Arrow Annotations working fine, but the rectangle Annotation is somehow weird.
You can look at the problem on the screenshot i provided.
Here is my code for the Rectangle Annotations:
http://imgur.com/GpBUlRv
//Edit: Ok I'm just blind and should name my variables correctly... If you wan't you can delete this discussion...
it's me again^^ I have a problem with Annotations.
I need 4 annotations for my plot, 2 RectangleAnnotations and 2 Arrowannotations. The Arrow Annotations working fine, but the rectangle Annotation is somehow weird.
You can look at the problem on the screenshot i provided.
Here is my code for the Rectangle Annotations:
var recAnnotation1 = new RectangleAnnotation();
recAnnotation1.MinimumX = 0;
recAnnotation1.MinimumY = 0;
recAnnotation1.MaximumY = listItem[listItem.Count - 1].WealthList;
recAnnotation1.Fill = OxyColor.FromArgb(99, 255, 0, 0); ;
var recAnnotation2 = new RectangleAnnotation();
recAnnotation1.MinimumY = 0;
recAnnotation2.MinimumX = 0;
listItem.Sort(delegate(ListCarrier l1, ListCarrier l2) { return l1.WealthList.CompareTo(l2.WealthList); });
recAnnotation2.MaximumY = listItem[listItem.Count - 1].WealthList;
recAnnotation2.Fill = OxyColor.FromArgb(99, 0, 128, 0);
temp.Series.Add(ls);
temp.Annotations.Add(recAnnotation2);
temp.Annotations.Add(recAnnotation1);
Here's the screenshot:http://imgur.com/GpBUlRv
//Edit: Ok I'm just blind and should name my variables correctly... If you wan't you can delete this discussion...
Customer support service by UserEcho