Hi,
I set the range of an axes like this:
Chart1.LeftAxis.Maximum:=aValue;
Chart1.LeftAxis.Minimum:=anotherValue;
That often I read an error-message like, "the max value must be more / less than the min value" or similar.
Exchanging those lines had other useless error-message problems.
As the next line of code would fix this, those error-messages are nothing but annoying.
All my workarounds NOT to see this error-messages were ugly in the sense of "under the line unnecessary code".
Wasn't there a line to set Minimum and Maximum together and do the error-check at the end?
I thought to have seen it once, but cannot find it any more.
Thanks,
Cheryll
Axes / Minimum / Maximum - without error message
Re: Axes / Minimum / Maximum - without error message
Hi Cheryll,
Yes, SetMinMax() method:Chartist wrote:Wasn't there a line to set Minimum and Maximum together and do the error-check at the end?
I thought to have seen it once, but cannot find it any more.
Code: Select all
Chart1.Axes.Left.setMinMax(anotherValue, aValue);
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |