Axes.Bottom.Labels.Angle

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Axes.Bottom.Labels.Angle

Post by biqpaulson » Mon Sep 19, 2011 6:07 pm

Using your "Axis_Millisec" example, I added a single line to the New() function (see below), yes the text for the bottom Axis still remains at 90 degrees. I would like slanted labels. Am I doing something wrong? I seem to recall that this feature worked, but it's possible that it was in an older, OCX version and not the .net version of your product.

Incidentally, I'm currently using version 4.1.2010.8042

Thanks,

Matt

InitializeComponent()
AddFormats()
points1.Add(Today.AddMilliseconds(1), 100)
points1.Add(Today.AddMilliseconds(5), 200)
points1.Add(Today.AddMilliseconds(10), 100)
points1.Add(Today.AddMilliseconds(15), 50)
points1.Pointer.Style = TeeChart.Styles.PointerStyles.Triangle
points1.XValues.DateTime = True
Dim axis As TeeChart.Axis = tChart1.Axes.Bottom
axis.Increment = Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneMillisecond)
axis.Labels.DateTimeFormat = "ss.fff"
===>>> axis.Labels.Angle = 270

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Axes.Bottom.Labels.Angle

Post by Sandra » Tue Sep 20, 2011 8:54 am

Hello biqpaulson,

I am not sure, if I have understood as you want achieve. I have tested your code and seems work correctly here. Please, can you explain exactly what are you want behave the labels, when you set their angle to 270?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Re: Axes.Bottom.Labels.Angle

Post by biqpaulson » Tue Sep 20, 2011 11:03 am

In my test, the labels stay at 90 degrees (reading down). I want them to go off at an angle towards the lower right. Can you please attach a screen shot of what you saw so I can compare? I know I have seen this work in the past, but now it does not.

Thanks,

Matt

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Axes.Bottom.Labels.Angle

Post by Sandra » Wed Sep 21, 2011 10:14 am

Hello

Ok. I have taken the Demo example Showing milliseconds and I have only added axis.labels.Angle= X, as you can see in next code:

Code: Select all

  Steema.TeeChart.Styles.Points points1;
        private void InitializeChart()
        {
            // This call is required by the Windows Form Designer.
            points1 = new Points(tChart1.Chart);

            System.DateTime today = System.DateTime.Today;
            points1.Add(today.AddMilliseconds(1), 100);
            points1.Add(today.AddMilliseconds(5), 200);
            points1.Add(today.AddMilliseconds(10), 100);
            points1.Add(today.AddMilliseconds(15), 50);

            points1.Pointer.Style = Steema.TeeChart.Styles.PointerStyles.Triangle;
            points1.XValues.DateTime = true;
            Steema.TeeChart.Axis axis = tChart1.Axes.Bottom;
            axis.Increment = Steema.TeeChart.Utils.GetDateTimeStep(Steema.TeeChart.DateTimeSteps.OneMillisecond);
            axis.Labels.DateTimeFormat = "ss.fff";
           //axis.Labels.Angle = 90;
           //axis.Labels.Angle = 270;
           axis.Labels.Angle = 60;
        }
And I have gotten, changing the angle of labels, next results :

Angle=90:
Angle90.jpg
Angle90.jpg (63.67 KiB) Viewed 7341 times
Angle=270:
Angle270.jpg
Angle270.jpg (64.28 KiB) Viewed 7350 times
Angle=60:
Angle60.jpg
Angle60.jpg (54.55 KiB) Viewed 7357 times
Can you tell us if previous code works as you expected and image show the result as you want?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

biqpaulson
Newbie
Newbie
Posts: 93
Joined: Thu Apr 17, 2008 12:00 am

Re: Axes.Bottom.Labels.Angle

Post by biqpaulson » Wed Sep 21, 2011 12:14 pm

Hi Sandra:

I now see how how the angle property affects the label rotation. But now, when I rotate my labels to the desired angle, they overlap the chart. I've tried using the Labels.Top property to move them, but there doesn't seem to be any affect. Please see the attachment.

Thanks,

Matt
Attachments
New Bitmap Image.png
New Bitmap Image.png (105.25 KiB) Viewed 7354 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Axes.Bottom.Labels.Angle

Post by Sandra » Wed Sep 21, 2011 2:50 pm

Hello Matt,

Thank you for image. I can reproduce your problem using last version of TeeChart.Net and I have added your request in the bug list report with number [TF02015749]. We will try to fix it for next maintenance releases of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply