Teechart v2010 dense bottom axis values.
-
- Newbie
- Posts: 5
- Joined: Wed Nov 18, 2009 12:00 am
- Contact:
Teechart v2010 dense bottom axis values.
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.
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.
Hi Michael,
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:
I've also tried the equivalent in VS 2008 C++:
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?
Oh if we could put our hands on it... it would save us a lot of work!Michael Kim wrote:I am trying to use Teechart v2101
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
Code: Select all
axTChart1->Legend->Visible = false;
axTChart1->Aspect->View3D = false;
axTChart1->Series(0)->FillSampleValues(1000);
axTChart1->Axis->Bottom->Increment = 200;
Could you please arrange a simple example project we can run as-is to reproduce the problem here?
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 5
- Joined: Wed Nov 18, 2009 12:00 am
- Contact:
Re: Teechart v2010 dense bottom axis values.
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.
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.
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.
Thanks,
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.
Thanks,
Best Regards,
Sandra Pazos / 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 |
-
- Newbie
- Posts: 5
- Joined: Wed Nov 18, 2009 12:00 am
- Contact:
Re: Teechart v2010 dense bottom axis values.
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.
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 796 times
Re: Teechart v2010 dense bottom axis values.
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:
VS 2008 C++:
Could you please, check if previous code works as you want?
I hope will helps.
Thanks,
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;
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 5
- Joined: Wed Nov 18, 2009 12:00 am
- Contact:
Re: Teechart v2010 dense bottom axis values.
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.
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.
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);
}
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.
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:
Could you please, say if previous code works as you want?
I hope will helps.
Thanks,
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;
}
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 5
- Joined: Wed Nov 18, 2009 12:00 am
- Contact:
Re: Teechart v2010 dense bottom axis values.
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.
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.
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.
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.
Hello Michael,
You are right. It is a known bug for us I've incremented the ticket priority (TV52015179).
Thanks,
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Teechart v2010 dense bottom axis values.
Hello,
Just wanted to let you know that we have fixed TV52015179 for the next maintenance release.
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 |
Instructions - How to post in this forum |
Re: Teechart v2010 dense bottom axis values.
Hi Narcis,
...and what is the date of the next maintenance release ? (Forbiden to answer asap, soon... )
Regards,
Guilz
...and what is the date of the next maintenance release ? (Forbiden to answer asap, soon... )
Regards,
Guilz
Re: Teechart v2010 dense bottom axis values.
Hi Guilz,
I hope we can publish a maintenance release the next week.
I hope we can publish a maintenance release the next week.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Teechart v2010 dense bottom axis values.
Hi Yeray,
Any news about the next maintenance release ?
Thank you
Guilz
Any news about the next maintenance release ?
Thank you
Guilz
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Teechart v2010 dense bottom axis values.
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 |