public function setType( $type, $options = array(), $series = 'default' )
    {
        parent::setType( $type, $options, $series );
        if ( $series == 'default' ) {
            $rendererOptions = $this->types['default']->getRendererOptions();
            if ( $renderer = $this->types['default']->getRenderer() ) {
                $this->options['seriesDefaults']['renderer'] = $renderer;
            }
            if (! empty( $rendererOptions ) ) {
                $this->options['seriesDefaults']['rendererOptions'] = $rendererOptions;
            }
        }
        return $this;
    }
public function setType( $type, $options = array(), $series = 'default' )
    {
        parent::setType( $type, $options, $series );
        if ( $series == 'default' ) {
            $rendererOptions = $this->types['default']->getRendererOptions();
            if ( $renderer = $this->types['default']->getRenderer() ) {
                $this->options['seriesDefaults']['renderer'] = $renderer;
            }
            if (! empty( $rendererOptions ) ) {
                $this->options['seriesDefaults']['rendererOptions'] = $rendererOptions;
            }
        }
        return $this;
    }
public function setType ( $ type , $ options = array ( ) , $ series = 'default' ) { parent :: setType ( $ type , $ options , $ series ) ; if ( $ series == 'default' ) { $ rendererOptions = $ this -> types [ 'default' ] -> getRendererOptions ( ) ; if ( $ renderer = $ this -> types [ 'default' ] -> getRenderer ( ) ) { $ this -> options [ 'seriesDefaults' ] [ 'renderer' ] = $ renderer ; } if ( ! empty ( $ rendererOptions ) ) { $ this -> options [ 'seriesDefaults' ] [ 'rendererOptions' ] = $ rendererOptions ; } } return $ this ; }
Registers a type for a series or entire chart
@see \Altamira\JsWriter\JsWriterAbstract::setType()
@param string|Altamira\Type\TypeAbstract $type
@param array $options
@param string $series
@return \Altamira\JsWriter\JqPlot
Registers a type for a series or entire chart