On Thu, Nov 26, 2009 at 2:01 AM, Javier Guerra <jav...@guerrag.com> wrote:
> On Wed, Nov 25, 2009 at 3:07 PM, S.Selvam <s.selvams...@gmail.com> wrote: > > I need to show some data as a chart. > > > > I would like to achieve a high quality rendering. > > > > Is reportlab or matplotlib enough ? > > reportlab allows you to generate PDFs, which can be as high quality as > you want; but if you want to display them on a webpage it's far from > the best. > > matplotlib is nice, being python. the biggest drawback is that being > a server-side task, so you have to deal with the processing time > and/or storage/deletion of (old) images. > > for in-page charts, you can use flot (http://code.google.com/p/flot/), > or Google Charts (http://code.google.com/apis/chart/). the first one > is a jQuery plugin, the other is an API that basically lets you > construct an URL for a PNG that's rendered on Google servers. in both > cases, you simply put (some of) your data on the page and let either > the client (if using flot) or somebody else (if using Google charts) > deal with the heavy tasks. > Thanks Javier, It helped me a lot. I have been trying with matplotlib by drawing the resultant chart to canvas and attaching it with response.(Hence i dont save the image as a temp file ). > > -- > Javier > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > > -- Yours, S.Selvam -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.