Laravel nova Trends with count all value

Viewed 125

Starting with Laravel Trends and i'm able to display a chart like the following

enter image description here

following the documentation

return $this->countByDays($request, User::class)
        ->showLatestValue();

Is it possible to show the sum of all users registered in that period instead of the current value? Keep the daily graph, but for example instead of 6 would show something like 50. Thanks

1 Answers

Use showSumValue

return $this->countByDays($request, User::class)
        ->showSumValue();
Related