Page 1 of 1

Cannot Zoom if Bottom axis Labels are not visible

Posted: Tue Aug 29, 2006 3:02 pm
by 9532219
When the bottom axis labels are made not visibile, the automatic zooming no longer works correctly. Is there a way to fix this?

Posted: Wed Aug 30, 2006 8:43 am
by narcis
Hi Westwood,

Thanks for reporting. I could reproduce the problem here and added it (TA05011727) to our defect list to be fixed for future releases.

In the meantime, a workaround is calling InternalRepaint as shown here:

Code: Select all

Private Sub Check1_Click()
    TChart1.Axis.Bottom.Labels.Visible = Not TChart1.Axis.Bottom.Labels.Visible
End Sub 

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 10
    TChart1.Environment.InternalRepaint 'Workaround
    TChart1.Axis.Bottom.Labels.Visible = False
End Sub