Axis Maximum Value must be >= Minimum
Posted: Wed Mar 08, 2017 8:33 pm
I'm using TChart 2015 ocx. I'm using the following piece of code to set the maximum and minimum values for the left axis
but I get an exception "Axis Maximum Value must be >= Minimum"
However, when I replace it with CurrentAxis.SetMinMax(....) the exception goes away. Not sure why...
but I get an exception "Axis Maximum Value must be >= Minimum"
Code: Select all
double fIncr;
double fMax, fMin;
fMax = -0.6;
fMin = -0.35
fIncr = (fMax - fMin)/10;
CurrentAxis.SetAutomatic(false);
CurrentAxis.SetAutomaticMaximum(false);
CurrentAxis.SetAutomaticMinimum(false);
CurrentAxis.SetMaximum(fMax);
CurrentAxis.SetMinimum(fMin);
CurrentAxis.SetIncrement(fIncr);