Complete the newbie question:
I have a Django application in which I generate a data view:
result = json.dumps(data) context = RequestContext(request, { 'result': result, }) return HttpResponse(template.render(context))
Now I have a map.js file in which I display a heat map of the data using d3.js I also have an index.html file where my page is displayed and the heatmap link is passed through
<body> <div id="heatMap"> </div> <body>
Question: how to transfer the data generated in the view to the map.js file?
Many thanks for your help!
notrockstar
source share