Skip to content

Instantly share code, notes, and snippets.

View rauch's full-sized avatar

Aleksandr Kozyntsev rauch

  • Lisbon, Portugal
View GitHub Profile
@rauch
rauch / django-chartit example
Created July 25, 2012 11:26
django-chartit, DateTime as xAxis
@staticmethod
def getJobStatChart(title, currentTime):
statistics =\
DataPool(
series=
[{'options': {
'source': PBSServer.objects.order_by('-time')[:20] },
'terms': [
('time', lambda d: time.mktime(d.timetuple())),
'running_jobs',