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.
GetAxisLabel behaviour issue.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |