Hi.
I'm currently working on a customized zooming function which, among others don't use the abnormal values, if any, for setting the zoomed rect. However, I find that the chart is very sensitive to the order which the axis min and max are set.
Example:
Before zoom : Right Axis min = 100 max = 1000
If we assume the there are only one peak that is 1000 and one that is 0 and the rest is between 30 and 50, using the following code will bring up a dialog stating "Axis minimum Value must be <= Maximum".
Chart.RightAxis.Maximum := 55
And then the error occurs.
Is there any way to make the chart stop checking this before I ave set both min and max??
Regards
Frode
Zooming problems
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frode,
I'm afraid the only way to avoid this checking is modifying TeeChart sources. However, you'll prevent it from happening by first setting axis minimum and then maximum.
Also notice that RighAxis property is deprecated, if you are using TeeChart v7 you'd better use Chart.Axes.Right.
I'm afraid the only way to avoid this checking is modifying TeeChart sources. However, you'll prevent it from happening by first setting axis minimum and then maximum.
Also notice that RighAxis property is deprecated, if you are using TeeChart v7 you'd better use Chart.Axes.Right.
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 |
Zooming problems
Hi.
Thanks for oticing me about the fact that the chart.rightAxis is deprecated.
However, setting the min value frst will not help if the new min value is higher than the already existing max value.
As I always set both min and max, I'll probably change the source to check that min is lower than max after max is set and set them accordingly.
Regards
Frode
Thanks for oticing me about the fact that the chart.rightAxis is deprecated.
However, setting the min value frst will not help if the new min value is higher than the already existing max value.
As I always set both min and max, I'll probably change the source to check that min is lower than max after max is set and set them accordingly.
Regards
Frode
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Frode,
In those cases you should set the new max. value first.However, setting the min value frst will not help if the new min value is higher than the already existing max value.
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 |