src/Features/Chartjs/Chart.php
public function displayAxes(bool $axes, bool $strict = false)
    {
        if ($strict) {
            return $this->options([
                'scale' => [
                    'display' => $axes,
                ],
            ]);
        }

        return $this->options([
            'scales' => [
                'xAxes' => [
                    [
                        'display' => $axes,
                    ],
                ],
                'yAxes' => [
                    [
                        'display' => $axes,
                    ],
                ],
            ],
        ]);
    }
public function displayAxes(bool $axes, bool $strict = false)
    {
        if ($strict) {
            return $this->options([
                'scale' => [
                    'display' => $axes,
                ],
            ]);
        }

        return $this->options([
            'scales' => [
                'xAxes' => [
                    [
                        'display' => $axes,
                    ],
                ],
                'yAxes' => [
                    [
                        'display' => $axes,
                    ],
                ],
            ],
        ]);
    }
public function displayAxes ( bool $ axes , bool $ strict = false ) { if ( $ strict ) { return $ this -> options ( [ 'scale' => [ 'display' => $ axes , ] , ] ) ; } return $ this -> options ( [ 'scales' => [ 'xAxes' => [ [ 'display' => $ axes , ] , ] , 'yAxes' => [ [ 'display' => $ axes , ] , ] , ] , ] ) ; }
Display the chart axis.

@param bool $axes

@return self
Display the chart axis .