public function setOption($name, $value)
	{
	    switch ($name) {
	        case 'horizontal':
	            $this->options['bars']['horizontal'] = $value;
                break;
	        case 'stackSeries':
	            $this->pluginFiles[] = 'jquery.flot.stack.js';
	            $this->options['series']['stack'] = true;
	            break; 
	        case 'fillColor':
	            $this->options['series']['bars']['fillColor']['colors'] = $value;
	            break;
	        default:
	            parent::setOption($name, $value);
	    }
	    
	    return $this;
	}
public function setOption($name, $value)
	{
	    switch ($name) {
	        case 'horizontal':
	            $this->options['bars']['horizontal'] = $value;
                break;
	        case 'stackSeries':
	            $this->pluginFiles[] = 'jquery.flot.stack.js';
	            $this->options['series']['stack'] = true;
	            break; 
	        case 'fillColor':
	            $this->options['series']['bars']['fillColor']['colors'] = $value;
	            break;
	        default:
	            parent::setOption($name, $value);
	    }
	    
	    return $this;
	}
public function setOption ( $ name , $ value ) { switch ( $ name ) { case 'horizontal' : $ this -> options [ 'bars' ] [ 'horizontal' ] = $ value ; break ; case 'stackSeries' : $ this -> pluginFiles [ ] = 'jquery.flot.stack.js' ; $ this -> options [ 'series' ] [ 'stack' ] = true ; break ; case 'fillColor' : $ this -> options [ 'series' ] [ 'bars' ] [ 'fillColor' ] [ 'colors' ] = $ value ; break ; default : parent :: setOption ( $ name , $ value ) ; } return $ this ; }
Abstracts out option setting and registers the required options based on what's provided.
@see \Altamira\Type\TypeAbstract::setOption()
@param string $name
@param mixed $value
@return \Altamira\Type\Flot\Bar
Abstracts out option setting and registers the required options based on what s provided .