One other approach is that you can send the data to matplotlib (which is python) and use that to create a .png which you then serve--it depends on what your needs are.
William On Thu, May 5, 2011 at 6:40 AM, Kenneth Gonsalves <law...@thenilgiris.com>wrote: > On Thu, 2011-05-05 at 03:05 -0700, Nge wrote: > > I already created a view and can extract data from database.But I have > > a problem. I don't know how to send to template and how to create js/ > > ajax. Can you share me sample? > > how to use js does not come in the purview of this list - you just need > to do it the same way as you do in normal web pages. The last line of > your view has a return statement that sends a dictionary to the > template. Send your data that way and use js to create the chart. > -- > regards > KG > http://lawgon.livejournal.com > Coimbatore LUG rox > http://ilugcbe.techstud.org/ > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.