Title of a Y-axis rotated by 90 degrees

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

Title of a Y-axis rotated by 90 degrees

Post by Jens Ramlow » Fri Oct 06, 2017 11:39 am

Hello Steema team,

I'm using Steema's TeeChart.WPF.

The chart I'm implementing contains three Series from TeeChart.WPF.Styles.Line and TeeChart.WPF.Styles.Points.
There is the Y-axis on the left, created with the following coded settings:

Code: Select all

C#
                //Settings for Y-Axis
                Steema.TeeChart.WPF.Axis leftAxis = MainChart.Axes.Left;
                leftAxis.Visible = true;
                leftAxis.Title.Visible = true;
                leftAxis.Title.Font.Size = 10.0;
                leftAxis.Title.Font.Name = "Segoe UI";
                leftAxis.Title.Font.Color = Colors.Black;
                leftAxis.Title.Caption = "Volt [V]";
                leftAxis.Title.Angle = 90;
                leftAxis.Grid.Visible = true;
                leftAxis.Grid.Color = Colors.DarkGray;
                leftAxis.Grid.DrawEvery = 1;
                leftAxis.MinorGrid.Visible = false;
                leftAxis.MinorTicks.Visible = false;
                leftAxis.Ticks.Color = leftAxis.Grid.Color;
                leftAxis.TickOnLabelsOnly = true;
                leftAxis.Increment = 1.0;
                leftAxis.AutomaticMaximum = false;
                leftAxis.AutomaticMinimum = true;
With using the leftAxis.Title.Angle = 90; I would like to visualize the title left-to-right instead of the default bottom-to-top read direction.
But it makes no difference whatever Title.Angle I have used.

Do you have any idea on this?
Note: All the charting is made at runtime programmatically.

Thank you for any help on this.
Best, Jens

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Title of a Y-axis rotated by 90 degrees

Post by Christopher » Fri Oct 06, 2017 2:35 pm

Hello Jens,

Setting:

Code: Select all

leftAxis.Title.Angle = 270;
gives me a top-to-bottom read direction - is this what you meant?
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Jens Ramlow
Newbie
Newbie
Posts: 13
Joined: Fri Sep 22, 2017 12:00 am
Location: Berlin, Germany

Re: Title of a Y-axis rotated by 90 degrees

Post by Jens Ramlow » Fri Oct 06, 2017 2:51 pm

Thank you Christopher,

it works as intended now.

Best, Jens

Post Reply