Make a graph to count records by month and year

Hi everyone,
I have a Device model with a installation_date attribute.
I'd like to build a line chart in a widget which shows how many devices have been installed per month.
Some months will have 0 installations but they still have to be displayed in the graph. Also, I'd like to show the year on the months-axis (like 03-2023).

Has anyone an idea how to achieve that?
Thanks!
Was this page helpful?