Is there any way to display github commit graph in the following way?

I need to display the last 30 days’ commit history, is there any way to fetch commit counts of the last 30 days?

Screenshot 2021-06-15 at 12-22-17 CauseFolio

If you are able to get all the user’s commits you should be able to divvy them up by which day the occurred on, then count them.