In a multiply axes project:
All the axes are assigned by the user,including all the vertical axes and a horizontal axis. The original left axis and the bottom axis are unvisible in the frame.
But, two original functions of teechart disappeared in this situation:
First,the lines can’t recover after I draged them when I was pressing right key of mouse.
Secondly, the lines can’t be zoomed in when I selected them in pressing left key of mouse.
I have tested that all the two functions are available if I reserve a original vertical axis. I have no idea how to config the axes in order to use all the control’s original functions. Is it a bug? Or, there are some other configarations.
Some original functions are disappeared
Hello Carl,
Please, could you send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page. And explain exactly what we must do, for reproduce the problem.
Also, please you could say which version, of TeeChartFor.NET you can use.
Thanks,
Please, could you send us a simple example project we can run "as-is" to reproduce the problem here? You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page. And explain exactly what we must do, for reproduce the problem.
Also, please you could say which version, of TeeChartFor.NET you can use.
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:
Hello Carl,
Thanks for the document but, as Sandra said, to be able to help you on this it would be very helpful if you could send us a simple example project we can run and debug here so that we can find the problem and suggest a solution if possible.
Thanks in advance.
Thanks for the document but, as Sandra said, to be able to help you on this it would be very helpful if you could send us a simple example project we can run and debug here so that we can find the problem and suggest a solution if possible.
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 |
Instructions - How to post in this forum |
Hello Carl,
Is not possible to make zoom automaticly when use custom axis. You need to assign zoom manually as is explained here.
But in your case, you need make a similar code using UndoneZoom Event and Zoomed Event so in the next example:
UndoneZoom Event:
Zoomed Event:
I hope that will help.
Is not possible to make zoom automaticly when use custom axis. You need to assign zoom manually as is explained here.
But in your case, you need make a similar code using UndoneZoom Event and Zoomed Event so in the next example:
UndoneZoom Event:
Code: Select all
private void tChart1_UndoneZoom(object sender, EventArgs e)
{
foreach (Steema.TeeChart.Styles.Series s in tChart1.Series)
{
s.GetVertAxis.Automatic = true;
s.GetHorizAxis.Automatic = true;
}
}
Code: Select all
private void tChart1_Zoomed(object sender, System.EventArgs e)
{
Steema.TeeChart.Axis axisv;
Steema.TeeChart.Axis axish;
double amax;
double amin;
foreach (Steema.TeeChart.Styles.Series s in tChart1.Series)
{
axisv = s.GetVertAxis;
amin = axisv.CalcPosPoint(s.Chart.Zoom.y0);
amax = axisv.CalcPosPoint(s.Chart.Zoom.y1);
axisv.Automatic = false;
axisv.SetMinMax(amin, amax);
axish = s.GetHorizAxis;
amin = axish.CalcPosPoint(s.Chart.Zoom.x0);
amax = axish.CalcPosPoint(s.Chart.Zoom.x1);
axish.Automatic = false;
axish.SetMinMax(amin, amax);
}
}
I hope that will help.
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 |
Oh, I just have thought it over and I have found out a solution.
In my project, the maximum and minimum are asociated with the settings in the database, so it is forbidden to set the axes are automatic.
I have rewrite the function named tChart1_UndoneZoom, then I have soled this problem.
Thanks for your help again,
Best wishes!
In my project, the maximum and minimum are asociated with the settings in the database, so it is forbidden to set the axes are automatic.
I have rewrite the function named tChart1_UndoneZoom, then I have soled this problem.
Thanks for your help again,
Best wishes!