Page 1 of 1

Axis titles misplaced

Posted: Tue Nov 01, 2005 3:19 pm
by 8128589
Just upgrading to v2, and ran into this problem: Setting the bottom axis label to NOT visible causes the bottom axis title to be displayed at the top of the chart. Likewise, setting the left axis label to not visible makes the left axis title to disappear.

I can sort of get around this by setting the label = visible and style = None, but it still seems wrong and is different behavior than v1.

Posted: Wed Nov 02, 2005 12:51 pm
by narcis
Hi Gp,

This works fine here using latest Debug Build version available at our Customer Download Area. Can you please test if this version works for you?

Posted: Wed Nov 02, 2005 9:31 pm
by 8128589
That doesn't fix it. In fact now there is an additional problem, the axis is only about 1/4 the width that it should be.

Posted: Thu Nov 03, 2005 9:25 am
by narcis
Hi Gp,

I've been able to reproduce it. And added this defect (TF02011070) to our bug list to be fixed for future releases. In the meantime, a workaround is setting label text to an empty string on the GetAxisLabel event:

Code: Select all

		private void Form1_Load(object sender, System.EventArgs e)
		{
			line1.FillSampleValues();

			tChart1.Axes.Left.Title.Text="Left Axis Title";
			tChart1.Axes.Bottom.Title.Text="Bottom Axis Title";
		}

		private void tChart1_GetAxisLabel(object sender, Steema.TeeChart.GetAxisLabelEventArgs e)
		{
			e.LabelText="";
		}