Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Rectangle Annotation Problem

$
0
0
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:
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

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>