Axis Labels and Title
Posted: Thu Dec 06, 2007 11:03 pm
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
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