/** * Create an instance and process data * @param object $scope Scope * @param \Carbon\Carbon $date Date * @param int $period Period * @return self Line chart instance */ public static function forge($scope, $date, $period) { $chart = new self($scope, $date); $chart->setPeriod($period); $chart->process(); return $chart; }