public function getOptions()
	{
		$opts = array();

		$first = array();
		$second = array();
		
        if ( $this->axisRenderer ) {
		    $first['renderer'] = '#' . $this->axisRenderer . '#';
        }
        
		if( isset( $this->options['ticks'] ) ) {
			$first['ticks'] = $this->options['ticks'];
		}
		
		$second['min'] = isset( $this->options['min'] ) ? $this->options['min'] : 0;

		if( isset( $this->options['horizontal'] ) && $this->options['horizontal'] ) {
			$opts['xaxis'] = $second;
			$opts['yaxis'] = $first;
		} else {
			$opts['xaxis'] = $first;
			$opts['yaxis'] = $second;
		}

		$opts = array( 'axes' => $opts );

		if( isset( $this->options['stackSeries'] ) ) {
			$opts['stackSeries'] = $this->options['stackSeries'];
		}

		if( isset( $this->options['seriesColors'] ) ) {
			$opts['seriesColors'] = $this->options['seriesColors'];
		}

		return $opts;
	}
public function getOptions()
	{
		$opts = array();

		$first = array();
		$second = array();
		
        if ( $this->axisRenderer ) {
		    $first['renderer'] = '#' . $this->axisRenderer . '#';
        }
        
		if( isset( $this->options['ticks'] ) ) {
			$first['ticks'] = $this->options['ticks'];
		}
		
		$second['min'] = isset( $this->options['min'] ) ? $this->options['min'] : 0;

		if( isset( $this->options['horizontal'] ) && $this->options['horizontal'] ) {
			$opts['xaxis'] = $second;
			$opts['yaxis'] = $first;
		} else {
			$opts['xaxis'] = $first;
			$opts['yaxis'] = $second;
		}

		$opts = array( 'axes' => $opts );

		if( isset( $this->options['stackSeries'] ) ) {
			$opts['stackSeries'] = $this->options['stackSeries'];
		}

		if( isset( $this->options['seriesColors'] ) ) {
			$opts['seriesColors'] = $this->options['seriesColors'];
		}

		return $opts;
	}
public function getOptions ( ) { $ opts = array ( ) ; $ first = array ( ) ; $ second = array ( ) ; if ( $ this -> axisRenderer ) { $ first [ 'renderer' ] = '#' . $ this -> axisRenderer . '#' ; } if ( isset ( $ this -> options [ 'ticks' ] ) ) { $ first [ 'ticks' ] = $ this -> options [ 'ticks' ] ; } $ second [ 'min' ] = isset ( $ this -> options [ 'min' ] ) ? $ this -> options [ 'min' ] : 0 ; if ( isset ( $ this -> options [ 'horizontal' ] ) && $ this -> options [ 'horizontal' ] ) { $ opts [ 'xaxis' ] = $ second ; $ opts [ 'yaxis' ] = $ first ; } else { $ opts [ 'xaxis' ] = $ first ; $ opts [ 'yaxis' ] = $ second ; } $ opts = array ( 'axes' => $ opts ) ; if ( isset ( $ this -> options [ 'stackSeries' ] ) ) { $ opts [ 'stackSeries' ] = $ this -> options [ 'stackSeries' ] ; } if ( isset ( $ this -> options [ 'seriesColors' ] ) ) { $ opts [ 'seriesColors' ] = $ this -> options [ 'seriesColors' ] ; } return $ opts ; }
This provides a limited set of options based on how it has been configured
@TODO this really looks like it should be refactored, but it's pretty opaque and legacy at this point
@see \Altamira\Type\TypeAbstract::getOptions()
@return array
This provides a limited set of options based on how it has been configured