Hi,
it's me again^^ I have a problem with the Rectangle Annotation.
I need 2 annotations for my plot. I get this done, but one of my annotations is going endlessly in the y-axis although i've set an maximumY.
Here is my code:
http://imgur.com/GpBUlRv
it's me again^^ I have a problem with the Rectangle Annotation.
I need 2 annotations for my plot. I get this done, but one of my annotations is going endlessly in the y-axis although i've set an maximumY.
Here is my code:
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 a screenshot:http://imgur.com/GpBUlRv