Hi,
Does the latest release have the ability to rotate text labels in the 3D Charts?
Rotate Labels in 3D Graph
Re: Rotate Labels in 3D Graph
I am referring to annotation text when the 3D chart is rotated with the rotate tool
Re: Rotate Labels in 3D Graph
Hello lilo,
You can achieve that annotation rotate in XY plan, using OpenGL as do in next simple example of code:
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,
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;
}
I hope will helps.
Thanks,
Best Regards,
Sandra Pazos / 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 |
Re: Rotate Labels in 3D Graph
Yes, this works, thanks.