GetAxisLabel with Priority ?
Posted: Tue Aug 08, 2006 2:27 pm
Hi,
Let’s start by explaining what I’m doing:
My chart got a variable number of points, the X axis represent the time. The compression factor change at run time. Some dates don’t have point. I can zoom from 30 years of view to 1 day.
So I need to customize the AxisLabel to have a nice display (Indicate New year, name of the month, don’t display the number of the day if I got a lot of points, …)
Then when I resize (make it smaller) the chart, some label disappear (to avoid over write).
My problem is:
The labels that get “erase” first are the more important ones.
How can I specified which label is “more important” so teeChart don’t erase them ?
Do you have a system with “Main label” and “Sec. label” ?
The workaround I’m using now is ugly: I don’t display 1-2 labels after and before the “important” one. Off course, when the chart is big you see the holes…
Also, I can try to make long calculation with the size of the chart, the position of the label on the axis and the label size. But I will like to avoid this.
I did look for a solution and didn’t found any.
Do you have an idea? Did I miss a magic function of TeeChart?
Thanks in advance,
Let’s start by explaining what I’m doing:
My chart got a variable number of points, the X axis represent the time. The compression factor change at run time. Some dates don’t have point. I can zoom from 30 years of view to 1 day.
So I need to customize the AxisLabel to have a nice display (Indicate New year, name of the month, don’t display the number of the day if I got a lot of points, …)
Then when I resize (make it smaller) the chart, some label disappear (to avoid over write).
My problem is:
The labels that get “erase” first are the more important ones.
How can I specified which label is “more important” so teeChart don’t erase them ?
Do you have a system with “Main label” and “Sec. label” ?
The workaround I’m using now is ugly: I don’t display 1-2 labels after and before the “important” one. Off course, when the chart is big you see the holes…
Also, I can try to make long calculation with the size of the chart, the position of the label on the axis and the label size. But I will like to avoid this.
I did look for a solution and didn’t found any.
Do you have an idea? Did I miss a magic function of TeeChart?
Thanks in advance,