AxisException
Hierarchy Properties Methods Events
Exception class used by TChartAxis objects to raise errors.
Unit
TeEngine
Description
The AxisException is raised in the following cases:
When an Axis LogarithmicBase property is set to a number less than 2.
When the Axis displays DateTime values and is set to Logarithmic.
When the Axis is set to Logarithmic and the minimum or maximum are less than zero.
When the Axis Increment is set to a number less than zero.
When the Axis Minimum is set to a number greater than the Maximum.
When the Axis Maximum is set to a number lower than the Minimum.
In the later two cases, you can use the Axis SetMinMax method to avoid the exception :
Chart1.Axes.Left.SetMinMax( 0 , 1000 );