Page 1 of 1

Rotate Labels in 3D Graph

Posted: Thu Aug 25, 2011 3:15 am
by 15657351
Hi,

Does the latest release have the ability to rotate text labels in the 3D Charts?

Re: Rotate Labels in 3D Graph

Posted: Thu Aug 25, 2011 4:57 am
by 15657351
I am referring to annotation text when the 3D chart is rotated with the rotate tool

Re: Rotate Labels in 3D Graph

Posted: Fri Aug 26, 2011 1:31 pm
by 10050769
Hello lilo,

You can achieve that annotation rotate in XY plan, using OpenGL as do in next simple example of code:

Code: Select all

 public Form1()
        {
            InitializeComponent();
            InitializeChart();
        }
      Steema.TeeChart.Styles.Line line;
      Steema.TeeChart.Tools.Annotation annotation;
      Steema.TeeChart.Tools.Rotate rotate; 
      private void InitializeChart()
      {
          line = new Line(tChart1.Chart);
          line.FillSampleValues();

          rotate = new Steema.TeeChart.Tools.Rotate(tChart1.Chart);
          //Open GL
          Steema.TeeChart.Drawing.GL.TeeOpenGL openGL = new Steema.TeeChart.Drawing.GL.TeeOpenGL(tChart1.Chart);
          openGL.Active = true;
          openGL.ShadeQuality = true;

          tChart1.Walls.Back.Visible = false;
          tChart1.Axes.Bottom.Labels.Font.Size = 10;
          tChart1.Axes.Left.Labels.Font.Size = 10;
          tChart1.Axes.Left.Labels.Font.Bold = true;
          tChart1.Axes.Bottom.Labels.Font.Bold = true;

          tChart1.Aspect.Rotation = 0;
          tChart1.Aspect.Elevation = 361;
          //Anotation
          annotation.Text = "TeeChart.Net";
          annotation.Shape.Font.Size = 12;
          annotation = new Steema.TeeChart.Tools.Annotation(tChart1.Chart);
          annotation.Left = 250;
          annotation.Top = 250;
      }
Remember that you need add in the folder reference of your application, the assemblies, TeeChart.dll and TeeChart.OpenGL.dll. On the other hand, please can you tell us, if previous code works as you expected?

I hope will helps.

Thanks,

Re: Rotate Labels in 3D Graph

Posted: Mon Aug 29, 2011 2:12 am
by 15657351
Yes, this works, thanks.