Skip to content

Instantly share code, notes, and snippets.

@fsbraun
Last active May 7, 2019 03:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fsbraun/8840db30b8eafd4eac6f47eb9905b3d2 to your computer and use it in GitHub Desktop.
Save fsbraun/8840db30b8eafd4eac6f47eb9905b3d2 to your computer and use it in GitHub Desktop.
import json
from django.contrib.staticfiles.templatetags.staticfiles import static
from django.shortcuts import render
def cummulative_chart(request):
context = {
'cummulative_chart': {
'id': 1,
'chartsource': static('cumulativeLineData.json'),
'tick_values': json.dumps([1078030800000,1122782400000,1167541200000,1251691200000]),
}
}
return render(request, 'base.html', context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment