Page 1 of 1

Teechart v2010 dense bottom axis values.

Posted: Tue Oct 12, 2010 2:32 am
by 15054681
Hi.

I am trying to use Teechart v2101.
When I use line series for Teechart v8.0.0.8, it automatically resizes gap among bottom axis values.
If bottom axis has too many values, it omits displaying a few values and adjusts the gap between values.
But line series for Teechart v2010 displays all values on bottom axis so that I can't recognize it when bottom axis has too many values. SetIncrement() function doesn't also work.

How can I do to resolve this problem?

I am using VS 2008 C++ .NET.

Thank you.

Re: Teechart v2010 dense bottom axis values.

Posted: Wed Oct 13, 2010 9:10 am
by yeray
Hi Michael,
Michael Kim wrote:I am trying to use Teechart v2101
Oh if we could put our hands on it... it would save us a lot of work! ;)

Ok, seriously. I'm trying to reproduce the problem here with VB6 and TeeChart AX v2010 Beta and the following code, but I can't:

Code: Select all

  TChart1.Legend.Visible = False
  TChart1.Aspect.View3D = False
  
  TChart1.AddSeries scLine
  TChart1.Series(0).FillSampleValues 1000
  
  TChart1.Axis.Bottom.Increment = 200
I've also tried the equivalent in VS 2008 C++:

Code: Select all

				 axTChart1->Legend->Visible = false;
				 axTChart1->Aspect->View3D = false;

				 axTChart1->Series(0)->FillSampleValues(1000);

				 axTChart1->Axis->Bottom->Increment = 200;
But got the same result that looks correct for me.

Could you please arrange a simple example project we can run as-is to reproduce the problem here?

Re: Teechart v2010 dense bottom axis values.

Posted: Wed Oct 20, 2010 11:30 am
by 15054681
Hi.

Thank you for your answer.
And I'm sorry for late reply.

I have kept on trying to know what problem is.
So, I suggest that you need to make one more series.
I also tested only one series, but I didn't find that problem.
However, when I added two or three series on chart, I could see the problem.

Could you test about that?

Thank you.

Re: Teechart v2010 dense bottom axis values.

Posted: Wed Oct 20, 2010 2:30 pm
by 10050769
Hello Michael,

I'm afraid, we still can not reproduce your problem here. I have attached a simple project that work fine for me using version TeeChart AX v2010 Beta. Please, check if project works fine for you.
C++AXTest.zip
(2.55 MiB) Downloaded 777 times
Thanks,

Re: Teechart v2010 dense bottom axis values.

Posted: Thu Oct 21, 2010 12:58 am
by 15054681
Hi.

I'm sorry. I couldn't compile your source.
So I made a project and you can recognize the problem.

I hope that you let me know the solution about this problem after you test my code.

Thank you.

Re: Teechart v2010 dense bottom axis values.

Posted: Thu Oct 21, 2010 11:27 am
by 10050769
Hello Michael,

I think that your problem is that you need change style of labels of text to value as do in next lines of code:

Code VB6:

Code: Select all

   TChart1.Axis.Bottom.Labels.Style = talValue
   TChart1.Axis.Bottom.Increment = 10

VS 2008 C++:

Code: Select all

axTChart1->Axis->Bottom->Labels->Style =TeeChart::EAxisLabelStyle::talValue;
axTChart1->Axis->Bottom->Increment= 10;
Could you please, check if previous code works as you want?

I hope will helps.

Thanks,

Re: Teechart v2010 dense bottom axis values.

Posted: Fri Oct 22, 2010 2:27 am
by 15054681
Hi.

Thank you very much for your response. :)

I think that your solution can solve many parts of my problem.
But I still have two problems.

1. I use a lot of tcharts and some tcharts have to use text label in bottom axis.
So I can't change all label style from text to value. And I will still have the problem that labels seem to be stacked.
(In Teechart v8.0.0.8, even though there are too many text labels on bottom axis, text labels don't seem to be stacked by omitting to display a few labels automatically.)

2. When I use your solution in the chart that uses value label, value label's range is changed as start point 0.

As you know, Series.Add() function requires label type as only LPCSTR (const char*).
For example, If I want to put 1000 labels (range is 9000 ~ 9999) on bottom axis, I usually use below code.

Code: Select all

    char szNumber[100];
    for(int i = 9000; i < 10000; i++) 
    {
         sprintf(szNumber, "%d", i);
         m_cTchart->Series(0).Add(dValue, szNumber, RGB(255, 0, 0);
    }
    
And I can see the labels 9000 ~ 9999 on my chart's bottom axis. But it is just Text seems like number.
If I set label style to value, label range is changed from 0 to 999.
I think tchart doesn't convert text number to real number.

Is there any other functions to add items using real number labels?

I expect you to reproduce above things using my code in previous article.
Please let me know how can I do.

Thank you very much.

Re: Teechart v2010 dense bottom axis values.

Posted: Fri Oct 22, 2010 3:11 pm
by 10050769
Hello Michael Kim,

I recommend that use method AddXY of series, that it allow add valueX,valueY and label. You can do something as do below code:

Code: Select all

private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) 
			 {

             axTChart1->Legend->Visible = false;
             axTChart1->Aspect->View3D = false;
			 axTeeCommander1->ChartLink = axTChart1->ChartLink;
			for(int i=0;i<1000;i++)
			{
				double value = i*100;
				 axTChart1->Series(0)->AddXY((double)i*10,value, value.ToString(),0);
				 axTChart1->Series(1)->AddXY((double)i*5, value, value.ToString(), 0);
			}
			axTChart1->Axis->Bottom->Labels->Style =TeeChart::EAxisLabelStyle::talValue;
			axTChart1->Axis->Bottom->Increment= 3000;
			 }
Could you please, say if previous code works as you want?

I hope will helps.

Thanks,

Re: Teechart v2010 dense bottom axis values.

Posted: Mon Oct 25, 2010 1:18 am
by 15054681
Hello, Sandra.

Thank you very much.
I can resolve my problem after using AddXY function.

But I still have one problem for Text Label.
When I use many Text Labels, they seem to be stacked.
example.jpg
Text labels stacked on bottom axis
example.jpg (78.56 KiB) Viewed 19014 times
What I want to say is that there wasn't this problem in TeeChart 8.0.0.8.
In TeeChart 8.0.0.8, it automatically shows text labels not to be stacked.

How can I resolve this problem?
Please let me know.

Thank you.

Re: Teechart v2010 dense bottom axis values.

Posted: Mon Oct 25, 2010 11:01 am
by 10050769
Hello Michael,

You are right. It is a known bug for us I've incremented the ticket priority (TV52015179).

Thanks,

Re: Teechart v2010 dense bottom axis values.

Posted: Mon Jan 17, 2011 3:44 pm
by narcis
Hello,

Just wanted to let you know that we have fixed TV52015179 for the next maintenance release.

Re: Teechart v2010 dense bottom axis values.

Posted: Tue Jan 18, 2011 12:17 pm
by 16657923
Hi Narcis,

...and what is the date of the next maintenance release ? (Forbiden to answer asap, soon... :D)

Regards,

Guilz

Re: Teechart v2010 dense bottom axis values.

Posted: Thu Jan 20, 2011 9:45 am
by yeray
Hi Guilz,

I hope we can publish a maintenance release the next week.

Re: Teechart v2010 dense bottom axis values.

Posted: Tue Feb 01, 2011 1:33 pm
by 16657923
Hi Yeray,

Any news about the next maintenance release ?

Thank you

Guilz

Re: Teechart v2010 dense bottom axis values.

Posted: Wed Feb 02, 2011 8:44 am
by narcis
Hi Guilz,

Yes, Pep posted an update here.