src/Classes/BaseChart.php
public function labels($labels)
    {
        if ($labels instanceof Collection) {
            $labels = $labels->toArray();
        }

        $this->labels = $labels;

        return $this;
    }
public function labels($labels)
    {
        if ($labels instanceof Collection) {
            $labels = $labels->toArray();
        }

        $this->labels = $labels;

        return $this;
    }
public function labels ( $ labels ) { if ( $ labels instanceof Collection ) { $ labels = $ labels -> toArray ( ) ; } $ this -> labels = $ labels ; return $ this ; }
Set the chart labels.

@param array|Collection $labels

@return self
Set the chart labels .