perMonth(User::class); return [ 'chart' => [ 'type' => 'area', 'height' => 300, ], 'series' => [ [ 'name' => $this->getHeading(), 'data' => $data->map(fn (TrendValue $value) => $value->aggregate), ], ], 'xaxis' => [ 'categories' => $data->map(fn (TrendValue $value) => $this->translateDate($value->date)), 'labels' => [ 'style' => [ 'fontFamily' => 'inherit', ], ], ], 'yaxis' => [ 'labels' => [ 'style' => [ 'fontFamily' => 'inherit', ], ], ], 'colors' => ['#71E9C5'], 'stroke' => [ 'curve' => 'smooth', ], 'dataLabels' => [ 'enabled' => false, ], ]; } }