displayLegend(true); $labels = []; $quantity = []; $income = []; foreach ($values as $v) { $labels[] = $v->yearMonth; $quantity[] = $v->quantity; } $this->labels($labels); $this->dataset(trans('companies::statistics.registered'), 'line', $quantity)->options([ ])->color('#000000'); } }