Need to create a graph for hourly committed frequency in pie chart

No of commits per hour
for example
1 commit an hour 5% of the time
2 commit an hour 23% of the time..
and so on