chart = $chart; } public function build($options = null) { return $this->chart->areaChart() ->setTitle('Contracts during last six months.') ->setSubtitle('New and Completed.') ->addData('New', [4, 9, 5, 2, 1, 8]) ->addData('Completed', [7, 2, 7, 2, 5, 4]) ->setColors(['#1A56DB', '#ff6384']) ->setXAxis(['January', 'February', 'March', 'April', 'May', 'June']) ->setToolbar(true) ->toVue(); } }