GetAxisLabel behaviour issue.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

GetAxisLabel behaviour issue.

Post by qcrnd » Wed Oct 29, 2008 6:40 am

Hi .
I would like to limit the label size in the bottom axis. for this I handle the
GetAxisLabel event
Chart.GetAxisLabel += OnChartGetAxisLabel;

protected void OnChartGetAxisLabel(object sender, GetAxisLabelEventArgs e)
{
if (((Steema.TeeChart.Axis)sender).Equals(Chart.Axes.Bottom))
{
if (e.LabelText.Length > 15)
{
e.LabelText = string.Format("{0}{1}", e.LabelText.Substring(0, 15), "...");
}
}
}


HOWEVER I noticed that although the label is cut properly , the graph itself is drawn must smaller becuase it seems to the think that the labels are longer and so what we get is alot of empty space at the bottom .
see image.
Image

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

Post by Narcís » Fri Oct 31, 2008 12:43 pm

Hi qcrnd,

I could reproduce the issue here and haven't found a solution so I've added it (TF02013509) to the defect list to be fixed for next releases.
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