Page 1 of 1

Title of a Y-axis rotated by 90 degrees

Posted: Fri Oct 06, 2017 11:39 am
by 15681921
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

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

Posted: Fri Oct 06, 2017 2:35 pm
by Christopher
Hello Jens,

Setting:

Code: Select all

leftAxis.Title.Angle = 270;
gives me a top-to-bottom read direction - is this what you meant?

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

Posted: Fri Oct 06, 2017 2:51 pm
by 15681921
Thank you Christopher,

it works as intended now.

Best, Jens