On Thu, 2007-07-19 at 11:56 +0200, Vít Rozkovec wrote: 
> Shouldn't it be possible to assign minValue and maxValue of the axis directly?
> 
> If so, then this should be added to __set() function in 
> Graph/src/axis/numeric.php (not sure about the cast)
> 
>            case 'minValue':
>                 if ( !is_numeric( $propertyValue ) )
>                 {
>                     throw new ezcBaseValueException( $propertyName, 
> $propertyValue, 'float' );
>                 }
> 
>                 $this->properties['minValue'] = (float) $propertyValue;
>                 break;
>             case 'maxValue':
>                 if ( !is_numeric( $propertyValue ) )
>                 {
>                     throw new ezcBaseValueException( $propertyName, 
> $propertyValue, 'float' );
>                 }
> 
>                 $this->properties['maxValue'] = (float) $propertyValue;
>                 break;

minValue and maxValue are internal variables used to store the real
minimum and maximum. You can set the display minimum and maximum using
the properties min and max, like:

$chart->yAxis->min = 10;
$chart->yAxis->max = 50;

-- 
Mit freundlichen Grüßen / Med vennlig hilsen
 
Kore Nordmann (GPG: 0xDDC70BBB)
eZ Components Developer
eZ systems Headquaters

tel +49 (0) 231-9742-7750 | fax +49 (0) 231-9742-7751
[EMAIL PROTECTED] | eZ systems | ez.no

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to