heading = StatisticType::get($this->filters); $data = [ 'datasets' => [ [ 'label' => 'test', 'data' => [0, 10, 5, 2, 21, 32, 45, 74, 65, 45, 77, 89], 'backgroundColor' => '#36A2EB', ], ], 'labels' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], ]; return $data; } protected function getType(): string { return 'line'; } }