TeeChart.NET version 3.2.2894.29191
I am having some problems with Axis Labels and Titles when rotating a 3D chart. I will use the Right axis as an example because that is the one I'm working on right now.
If I set the axis ZPosition to 0, then start to rotate the chart from 0 to 10 or 20 degrees, the labels start overlapping the title. If I change the Labels.CustomSize, I can get them to separate again, but the more I rotate the chart the larger I have to set CustomSize and the more space is being wasted on the right side of the panel. Changing the Title.CustomSize seems to just push everything to the left so there is even more wasted space on the right side of the panel. Also, note that changing the Title size in the Editor tool doesn't work, you have to do it in code.
Another problem can be seen by setting the chart rotation to 90, both the axis Position and ZPosition to 100, and the Labels.Align to Opposite. Then start increasing the Aspect.Chart3DPercent. Eventually, the right side of the label strings start overlapping the axis. Changing the Labels.CustomSize doesn't seem to affect this.
I am wondering if there is a way to force the title to always be drawn to the right (or left) of the labels, even when the chart is rotated. Also, is there a way to make sure there is a little space between the labels and the axis itself when the chart is rotated 90 degrees.
The same problems may occur at other rotation values, but I am only working with 0 - 20 or 30 degrees and 90 degrees.
Jay
Axis Labels and Title
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jay,
Yes, this are known issues. The only solution I can think of at the moment is replacing axes titles for annotation tools or custom drawing the text in the chart's canvas.
Regarding the axis title size in the editor, I've added it to our defect list (TF02012625) to be fixed for future releases.
Yes, this are known issues. The only solution I can think of at the moment is replacing axes titles for annotation tools or custom drawing the text in the chart's canvas.
Regarding the axis title size in the editor, I've added it to our defect list (TF02012625) to be fixed for future releases.
Best Regards,
Narcís Calvet / 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 |
Axis Labels and Title
Hi Narcis,
How would I determine the correct chart coordinates or screen coordinates to place the annotation or text so that it doesn't overlap the labels but is not too far away from them either? I need to be able to do this at runtime, because my application allows the user to rotate the chart.
Jay
How would I determine the correct chart coordinates or screen coordinates to place the annotation or text so that it doesn't overlap the labels but is not too far away from them either? I need to be able to do this at runtime, because my application allows the user to rotate the chart.
Jay