Skip to content

Instantly share code, notes, and snippets.

@andybak
Created March 12, 2014 19:43
Show Gist options
  • Save andybak/9514739 to your computer and use it in GitHub Desktop.
Save andybak/9514739 to your computer and use it in GitHub Desktop.
class HireVolumeChart(BaseChart):
title = _('Hire Volume')
template = 'admin_user_stats/modules/chart.html'
chart_size = "580x200"
values_count = 3 #use either days or values_count
interval = 'days'
queryset = BookingStockItem.objects.all()
date_field = 'booking__estimated_dispatch'
aggregate = Sum('quantity')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment