Page 1 of 1

Axes.Bottom.Labels.Angle

Posted: Mon Sep 19, 2011 6:07 pm
by 15048900
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

Re: Axes.Bottom.Labels.Angle

Posted: Tue Sep 20, 2011 8:54 am
by 10050769
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,

Re: Axes.Bottom.Labels.Angle

Posted: Tue Sep 20, 2011 11:03 am
by 15048900
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

Re: Axes.Bottom.Labels.Angle

Posted: Wed Sep 21, 2011 10:14 am
by 10050769
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 7400 times
Angle=270:
Angle270.jpg
Angle270.jpg (64.28 KiB) Viewed 7409 times
Angle=60:
Angle60.jpg
Angle60.jpg (54.55 KiB) Viewed 7416 times
Can you tell us if previous code works as you expected and image show the result as you want?

Thanks,

Re: Axes.Bottom.Labels.Angle

Posted: Wed Sep 21, 2011 12:14 pm
by 15048900
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

Re: Axes.Bottom.Labels.Angle

Posted: Wed Sep 21, 2011 2:50 pm
by 10050769
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,