diff options
Diffstat (limited to 'src/element/axis.php')
-rw-r--r-- | src/element/axis.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element/axis.php b/src/element/axis.php index d9b615e..f79965c 100644 --- a/src/element/axis.php +++ b/src/element/axis.php @@ -198,10 +198,10 @@ abstract class ezcGraphChartElementAxis extends ezcGraphChartElement break; case 'axisSpace': if ( !is_numeric( $propertyValue ) || - ( $propertyValue < 0 ) || + ( $propertyValue <= 0 ) || ( $propertyValue > 1 ) ) { - throw new ezcBaseValueException( $propertyName, $propertyValue, '0 <= float <= 1' ); + throw new ezcBaseValueException( $propertyName, $propertyValue, '0 < float <= 1' ); } $this->properties['axisSpace'] = (float) $propertyValue; |