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

New Post: ArrowAnnotations color

$
0
0
Hello) Can anybody help me? I' m using oxyPlot for my wpf project, and i'm trying to display a lot of arrows with different colors.
  var arrow = new ArrowAnnotation();
  arrow .Text = number.ToString();
  if (number < 2) 
                    arrow .Color = OxyColors.Green;
   else 
                     arrow .Color = OxyColors.Red;
  arrow.StartPoint =  point + 5;
  arrow.EndPoint = point;
  arrow.YAxisKey = "Spread";
  SpreadModel.Annotations.Add(arrow);
The variable - number is always different, but arrows are always the same color(depends of what number was the last).
Thanks

Viewing all articles
Browse latest Browse all 2061

Latest Images

Trending Articles



Latest Images

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