public function setAxisOptions($axis, $name, $value)
    {
        if(strtolower($axis) === 'x' || strtolower($axis) === 'y') {
            $axis = strtolower($axis) . 'axis';

            if ( in_array( $name, array( 'min', 'max', 'numberTicks', 'tickInterval', 'numberTicks' ) ) ) {
                
                $this->setNestedOptVal( $this->options, 'axes', $axis, $name, $value );
                
            } elseif( in_array( $name, array( 'showGridline', 'formatString' ) ) ) {
                
                $this->setNestedOptVal( $this->options, 'axes', $axis, 'tickOptions', $name, $value );
                
            }
        }

        return $this;
    }
public function setAxisOptions($axis, $name, $value)
    {
        if(strtolower($axis) === 'x' || strtolower($axis) === 'y') {
            $axis = strtolower($axis) . 'axis';

            if ( in_array( $name, array( 'min', 'max', 'numberTicks', 'tickInterval', 'numberTicks' ) ) ) {
                
                $this->setNestedOptVal( $this->options, 'axes', $axis, $name, $value );
                
            } elseif( in_array( $name, array( 'showGridline', 'formatString' ) ) ) {
                
                $this->setNestedOptVal( $this->options, 'axes', $axis, 'tickOptions', $name, $value );
                
            }
        }

        return $this;
    }
public function setAxisOptions ( $ axis , $ name , $ value ) { if ( strtolower ( $ axis ) === 'x' || strtolower ( $ axis ) === 'y' ) { $ axis = strtolower ( $ axis ) . 'axis' ; if ( in_array ( $ name , array ( 'min' , 'max' , 'numberTicks' , 'tickInterval' , 'numberTicks' ) ) ) { $ this -> setNestedOptVal ( $ this -> options , 'axes' , $ axis , $ name , $ value ) ; } elseif ( in_array ( $ name , array ( 'showGridline' , 'formatString' ) ) ) { $ this -> setNestedOptVal ( $ this -> options , 'axes' , $ axis , 'tickOptions' , $ name , $ value ) ; } } return $ this ; }
Used to format the axis of the registered chart
@param string $axis
@param string $name
@param mixed $value
@return \Altamira\JsWriter\JqPlot
Used to format the axis of the registered chart