How to filter a donut chart by date period?

Hi, I am still fresh to Metabase and I ran into this problem.

So I have objects that gets some credits each day.

I can create a table that will have credits grouped by objects and days (date).

How do I then draw a donut chart, that shows credits distribution among objects. But this chart must also be filterable in the dashboard, so I can select, e.g., February, 2023 and see how for that month the credits where distributed among the objects.