Axis titles misplaced

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Gp
Newbie
Newbie
Posts: 43
Joined: Thu Jan 13, 2005 5:00 am

Axis titles misplaced

Post by Gp » Tue Nov 01, 2005 3:19 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Nov 02, 2005 12:51 pm

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?
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Gp
Newbie
Newbie
Posts: 43
Joined: Thu Jan 13, 2005 5:00 am

Post by Gp » Wed Nov 02, 2005 9:31 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Nov 03, 2005 9:25 am

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="";
		}
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply