Text orientation in RectangleAnnotations

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

JuergenD wrote at 2012-11-28 12:45:

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 


objo wrote at 2012-12-03 07:52:

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.


JuergenD wrote at 2012-12-03 14:06:

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 


objo wrote at 2012-12-03 19:32:

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


JuergenD wrote at 2012-12-04 09:11:

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 


objo wrote at 2012-12-04 12:57:

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

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

select RectangleAnnotations - vertical bands


JuergenD wrote at 2012-12-04 13:03:

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

Thanks and best regards
Juergen 


objo wrote at 2012-12-04 18:59:

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


JuergenD wrote at 2012-12-05 14:13:

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