Custom Axis Labels

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rf2005
Newbie
Newbie
Posts: 11
Joined: Fri Jul 28, 2006 12:00 am

Custom Axis Labels

Post by rf2005 » Mon Aug 18, 2008 1:12 pm

Hello,

Using costum axis labels with the following code

AxisLabelItem lbl = new AxisLabelItem(tChartBars.Chart);
string labeltext = row.ItemArray[1].ToString();
lbl.Text = labeltext;
lbl.Transparent = true;
lbl.Pen.Visible = false;
lbl.Value = i;

tChartBars.Chart.Axes.Bottom.Labels.Items.Add(lbl);

produces the correct labels in a bar chart under the horizontal axis, but leaves a lot of blank area below the labels (appr. the same area as the labels cover). How can I get rid of the blank area?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Aug 19, 2008 11:00 am

Hello,

it's strange, I cannot reproduce the problem here using the following code :

Code: Select all

      tChart1.Axes.Bottom.Labels.Items.Clear();

      AxisLabelItem a = tChart1.Axes.Bottom.Labels.Items.Add(5);
      a.Transparent = false;
      a.Color = Color.Blue;
      a.Transparency = 50;
      tChart1.Chart.Axes.Bottom.Labels.Items.Add(10); 
If you still having the same problem, please send us a simple example with which we can reproduce "as is" the problem here. You can post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

rf2005
Newbie
Newbie
Posts: 11
Joined: Fri Jul 28, 2006 12:00 am

Post by rf2005 » Wed Aug 20, 2008 2:15 pm

I have uploaded a document containing a detailed description:
FileName=ntzCustomLabels_080818.doc

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Aug 21, 2008 10:03 am

Hello,

which TeeChart for NET version are you using ?

rf2005
Newbie
Newbie
Posts: 11
Joined: Fri Jul 28, 2006 12:00 am

Post by rf2005 » Thu Aug 21, 2008 12:07 pm

Hello,

The DLL we use has the following version number:

2.0.2887.28040

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

Post by Narcís » Mon Aug 25, 2008 9:43 am

Hi rf2005,

Latest v2 build is 2.0.3033.18430/31. Could you please download it and check if this solves the problem at your end?

If the problem persists would you be so kind to send us a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.
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

rf2005
Newbie
Newbie
Posts: 11
Joined: Fri Jul 28, 2006 12:00 am

Post by rf2005 » Tue Aug 26, 2008 6:38 am

Hello,

Thank you.
The latest version handles the space below the custom labels correctly.

Post Reply