sakanjo / laravel-easy-metrics

Generate metrics with ease and precision.
MIT License
289 stars 9 forks source link

Doughnut returns empty arrays #10

Open agumaxwellforcode opened 3 weeks ago

agumaxwellforcode commented 3 weeks ago

Trend works, same with Value, but Doughnut doesn't work

[$labels, $data] = Doughnut::make(User::class) ->options(UserSexEnum::class) ->count('sex', 'sex');

returns [ [], [] ]

sakanjo commented 3 weeks ago

I fail to discover why this happens, could you provide more information about the used enum and the model ?