Page 1 of 1

Custom Axis Labels

Posted: Mon Aug 18, 2008 1:12 pm
by 9642017
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?

Posted: Tue Aug 19, 2008 11:00 am
by Pep
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.

Posted: Wed Aug 20, 2008 2:15 pm
by 9642017
I have uploaded a document containing a detailed description:
FileName=ntzCustomLabels_080818.doc

Posted: Thu Aug 21, 2008 10:03 am
by Pep
Hello,

which TeeChart for NET version are you using ?

Posted: Thu Aug 21, 2008 12:07 pm
by 9642017
Hello,

The DLL we use has the following version number:

2.0.2887.28040

Posted: Mon Aug 25, 2008 9:43 am
by narcis
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.

Posted: Tue Aug 26, 2008 6:38 am
by 9642017
Hello,

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