Problem with function
Problem with function
Hi,
I've got a problem while trying to apply function (one-value-function, like tfCorrelation) on my serie. Right after plotting it looks like this:
But after starting to drag graph with right mouse button right axis looks like this:
Then if I do unzoom movement (left click from bottom-right to up-left) it returns to state on first image.
Thanks in advance
I've got a problem while trying to apply function (one-value-function, like tfCorrelation) on my serie. Right after plotting it looks like this:
But after starting to drag graph with right mouse button right axis looks like this:
Then if I do unzoom movement (left click from bottom-right to up-left) it returns to state on first image.
Thanks in advance
Last edited by Igor on Wed Nov 26, 2014 7:42 am, edited 1 time in total.
Re: Problem with function
Hello,
I can't see the images you tried to add on your post. Could you please try to correct them?
Also, we'll probably need a simple example project we can run as-is to reproduce the problem here.
I can't see the images you tried to add on your post. Could you please try to correct them?
Also, we'll probably need 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 |
Re: Problem with function
Hello, I've edited first post. If you can't reproduce the problem, I'll upload example later.
Re: Problem with function
Hello Igor,
Are you linking the different series to different vertical axes?
If you still find problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
Are you linking the different series to different vertical axes?
If you still find problems with it, please try to 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 |
Re: Problem with function
Hello,
Of course I'm linking different series to different vertical axes. They have different scales, so on one axis they will not be observable. Simple example in attachment, try to drag it.
Of course I'm linking different series to different vertical axes. They have different scales, so on one axis they will not be observable. Simple example in attachment, try to drag it.
- Attachments
-
- Correlation.zip
- (1.5 KiB) Downloaded 1374 times
Re: Problem with function
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with function
I've hidden grid, but there are still multiple "0.214" values on the axis and correlation line drops down when starting to drag.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Problem with function
Hi Igor,
What about setting right axis increment, for example:
What about setting right axis increment, for example:
Code: Select all
Chart1.axis.Right.Increment = 0.01;
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: Problem with function
Have you tried it on your side? When I set increment, I see no label at all at the right axis when starting dragging, and correlation line still drops down.
Re: Problem with function
Hello,
Try adding this at the end of your onLoadFunc. I can scroll the chart here always getting the "0.214" label on the right, with the latest TeeChart ActiveX version published, v2014.0.0.2.Igor wrote:Have you tried it on your side? When I set increment, I see no label at all at the right axis when starting dragging, and correlation line still drops down.
Code: Select all
Chart1.axis.Right.SetMinMax(lineF.YValues.Value(0)-1, lineF.YValues.Value(0)+1);
Chart1.axis.Right.gridpen.visible = false;
Chart1.Axis.Right.Labels.Clear();
Chart1.Axis.Right.Labels.Add(lineF.YValues.Value(0), lineF.YValues.Value(0).toFixed(3));
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with function
Hello,
Thanks for response. Your code works but looks like dirty solution. If I apply more functions to this graph, I'll have to set new axis bounds each time which I didn't mean to do.
I think when right axis is set to automatic, it is not normal behaviour that I see now.
Thanks for response. Your code works but looks like dirty solution. If I apply more functions to this graph, I'll have to set new axis bounds each time which I didn't mean to do.
I think when right axis is set to automatic, it is not normal behaviour that I see now.
Re: Problem with function
Hello Igor,
If you add more series to the right axis, you shouldn't need such a trick and you can set it to be automatic again.
Note I suggested this trick because your right axis was in a quite particular situation: a single series assigned to the axis, with all its YValues being the same. This situation is internally handled showing a unique label in the middle of the axis.Igor wrote:Thanks for response. Your code works but looks like dirty solution. If I apply more functions to this graph, I'll have to set new axis bounds each time which I didn't mean to do.
I think when right axis is set to automatic, it is not normal behaviour that I see now.
If you add more series to the right axis, you shouldn't need such a trick and you can set it to be automatic again.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Problem with function
Is it normal that I need a trick at all in that situation? Why doesn't it just work?