Text orientation in RectangleAnnotations

Nov 28, 2012 at 11:45 AM

Hi,
is it possible, to add a text orientation feature to the RectangleAnnotation class?
I created a chart like the "horizontal bands example" but in my case with vertical bands and therefore it would be great to have vertical text...

Thank you for all
Best Regards
Juergen 

Coordinator
Dec 3, 2012 at 6:52 AM

I added a "TextRotation" property. Try setting 90 or 270 degrees. The NuGet package will be updated later today, the build machine is currently powered off.

Dec 3, 2012 at 1:06 PM

Thank you very much for your help. 

I downloaded OxyPlot.WindowsForms.2012.4.37.1 from today (Dec, 3rd) but cannot find this new TextRotation property. Is this the correct version or do I have to wait for another one?

Best Regards
Juergen 

Coordinator
Dec 3, 2012 at 6:32 PM

Try version 2012.4.38.1, pushed to NuGet a few moments ago.

Dec 4, 2012 at 8:11 AM

No luck. I installed 2012.4.38.1 and rebuild my project from scratch. But RectangleAnnotation has no TextRotation property. Maybe we are talking about different libraries? I am using the OxyPlot and OxyPlot.WindowsForms in a .NET 4.5 WindowsForms application.

Thanks again for all your help
Best Regards

Juergen 

Coordinator
Dec 4, 2012 at 11:57 AM

Will check this tonight, see how it is supposed to work at

http://www.objo.net/oxyplot/examplebrowser/default.html

select RectangleAnnotations - vertical bands

Dec 4, 2012 at 12:03 PM

Perfect. Exactly how I need it. I am looking forward to see the update on the NuGet server.

Thanks and best regards
Juergen 

Coordinator
Dec 4, 2012 at 5:59 PM

Version 2012.4.38.1 and later should work. I tested in a WinForms 4.5 project without any issues.

Dec 5, 2012 at 1:13 PM

I am using 2012.5.2.1 now and it works fine. Thank you very much...