Page 1 of 1

Axis Labels and Title

Posted: Thu Dec 06, 2007 11:03 pm
by 9792387
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

Posted: Fri Dec 07, 2007 9:24 am
by narcis
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.

Axis Labels and Title

Posted: Fri Dec 07, 2007 3:57 pm
by 9792387
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