I had a hard time formulating the title, so please edit it if you have a better one :)
I'm trying to display some statistics using the pygooglechart. And I am using Django to get the database items out of the database.
The database items has a datetime field wich i want to "sort on". What i really want is to populate a list like this.
data = [10, 12, 51, 50]
Where each list item is the number(count) of database items within an hour. So lets say i do a query that gets all items in the last 72 hours, i want to collect the count of each hour into a list item. Anybody have a good way to do this?