oxyplot / oxyplot

A cross-platform plotting library for .NET
https://oxyplot.github.io/
MIT License
3.23k stars 949 forks source link

LineAnnotation set Color to OxyColors.Automatic not working #1315

Open Nick135 opened 5 years ago

Nick135 commented 5 years ago

Steps to reproduce

  1. model.Annotations.Add(new LineAnnotation { Slope = 0.05, Intercept = 1, Color = OxyColors.Automatic, Text = "1" });

Platform: WindowsForms .NET version: 4.5.2

Expected behaviour

Get Automatic Color for LineAnnotation

Actual behaviour

LineAnnotation is transparent

objorke commented 4 years ago

The 'automatic' colors are normally used for series. Should these also be supported in annotations?

Nick135 commented 4 years ago

To add a cursor, I used the LineAnnotation. The user can add the numbers of cursors he prefer. In the moment I have a array with colors, but if the automatic works it is exact what I need.