The Resize problem - the Axis labels overlapped by chart
Posted: Wed Dec 06, 2006 10:31 am
If I decrease the height of the form
Figure 1. (initial state)
the height of the chart decreases correspondingly up to the moment when the chart is 1 point high (Chart.ChartHeight = 1)
Figure 2. (the minimum height of the form with correctly displayed labels)
and any further decrease of the height of the form produces situation when the labels on the X Axis are overlapped by the chart (one highlighted by the red frame)
Figure 3. (further decreased height - labels overlapping with the chart)
which does not look nice.
We have several questions:
Is it possible to prevent this behavior? For example, in the API, are there any constraints or a function to find out the minimal rectangle neccessary for correct display of the labels (i.e. not overlapped)?
Or is there a flag that suppresses this behavior?
Thanks
Figure 1. (initial state)
the height of the chart decreases correspondingly up to the moment when the chart is 1 point high (Chart.ChartHeight = 1)
Figure 2. (the minimum height of the form with correctly displayed labels)
and any further decrease of the height of the form produces situation when the labels on the X Axis are overlapped by the chart (one highlighted by the red frame)
Figure 3. (further decreased height - labels overlapping with the chart)
which does not look nice.
We have several questions:
Is it possible to prevent this behavior? For example, in the API, are there any constraints or a function to find out the minimal rectangle neccessary for correct display of the labels (i.e. not overlapped)?
Or is there a flag that suppresses this behavior?
Thanks