src/Classes/BaseChart.php
public function formatOptions(bool $strict = false, bool $noBraces = false)
    {
        if (!$strict && count($this->options) === 0) {
            return '';
        }

        $options = Encoder::encode($this->options);

        return $noBraces ? substr($options, 1, -1) : $options;
    }
public function formatOptions(bool $strict = false, bool $noBraces = false)
    {
        if (!$strict && count($this->options) === 0) {
            return '';
        }

        $options = Encoder::encode($this->options);

        return $noBraces ? substr($options, 1, -1) : $options;
    }
public function formatOptions ( bool $ strict = false , bool $ noBraces = false ) { if ( ! $ strict && count ( $ this -> options ) === 0 ) { return '' ; } $ options = Encoder :: encode ( $ this -> options ) ; return $ noBraces ? substr ( $ options , 1 , - 1 ) : $ options ; }
Formats the chart options.

@param bool $strict

@return string
Formats the chart options .