Teechart v2010 dense bottom axis values.

TeeChart for ActiveX, COM and ASP
Post Reply
Michael Kim
Newbie
Newbie
Posts: 5
Joined: Wed Nov 18, 2009 12:00 am
Contact:

Teechart v2010 dense bottom axis values.

Post by Michael Kim » Tue Oct 12, 2010 2:32 am

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.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Yeray » Wed Oct 13, 2010 9:10 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Michael Kim
Newbie
Newbie
Posts: 5
Joined: Wed Nov 18, 2009 12:00 am
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Michael Kim » Wed Oct 20, 2010 11:30 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Teechart v2010 dense bottom axis values.

Post by Sandra » Wed Oct 20, 2010 2:30 pm

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 823 times
Thanks,
Best Regards,
Sandra Pazos / 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

Michael Kim
Newbie
Newbie
Posts: 5
Joined: Wed Nov 18, 2009 12:00 am
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Michael Kim » Thu Oct 21, 2010 12:58 am

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.
Attachments
TeechartTest.zip
TeeChart 2010 Test
(68.12 KiB) Downloaded 795 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Teechart v2010 dense bottom axis values.

Post by Sandra » Thu Oct 21, 2010 11:27 am

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,
Best Regards,
Sandra Pazos / 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

Michael Kim
Newbie
Newbie
Posts: 5
Joined: Wed Nov 18, 2009 12:00 am
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Michael Kim » Fri Oct 22, 2010 2:27 am

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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Teechart v2010 dense bottom axis values.

Post by Sandra » Fri Oct 22, 2010 3:11 pm

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,
Best Regards,
Sandra Pazos / 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

Michael Kim
Newbie
Newbie
Posts: 5
Joined: Wed Nov 18, 2009 12:00 am
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Michael Kim » Mon Oct 25, 2010 1:18 am

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 19397 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.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Teechart v2010 dense bottom axis values.

Post by Sandra » Mon Oct 25, 2010 11:01 am

Hello Michael,

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

Thanks,
Best Regards,
Sandra Pazos / 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

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

Re: Teechart v2010 dense bottom axis values.

Post by Narcís » Mon Jan 17, 2011 3:44 pm

Hello,

Just wanted to let you know that we have fixed TV52015179 for the next maintenance release.
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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: Teechart v2010 dense bottom axis values.

Post by guilz2010 » Tue Jan 18, 2011 12:17 pm

Hi Narcis,

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

Regards,

Guilz

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Teechart v2010 dense bottom axis values.

Post by Yeray » Thu Jan 20, 2011 9:45 am

Hi Guilz,

I hope we can publish a maintenance release the next week.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: Teechart v2010 dense bottom axis values.

Post by guilz2010 » Tue Feb 01, 2011 1:33 pm

Hi Yeray,

Any news about the next maintenance release ?

Thank you

Guilz

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

Re: Teechart v2010 dense bottom axis values.

Post by Narcís » Wed Feb 02, 2011 8:44 am

Hi Guilz,

Yes, Pep posted an update here.
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