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 TChartAxis.Logarithmic property is set to a number less than 2.
When the Axis displays DateTime values and is set to TChartAxis.Logarithmic.
When the Axis is set to Logarithmic and the minimum or maximum are less than zero.
When the Axis TChartAxis.Increment is set to a number less than zero.
When the Axis TChartAxis.Minimum is set to a number greater than the Maximum.
When the Axis TChartAxis.Maximum is set to a number lower than the Minimum.
In the later two cases, you can use the Axis TChartAxis.SetMinMax method to avoid the exception :
Chart1.Axes.Left.SetMinMax( 0 , 1000 );