On Jun 25, 9:43 am, koranthala <koranth...@gmail.com> wrote:
> Hi,
> I have a chart which I generate on the fly.
> Basically, I have hard linked an image. The image src contains GET
> parameters, which is used to generate the chart image via matplotlib.
> The resultant image is returned back as 'Content-Type' = 'image/png',
> and thus the chart is displayed.
> i.e. <img src='/chart?key1=field1&key2=field2' /> is there in
> HTML - created using templates. The parameters key1, key2, field1,
> field2 etc are used to create the image.
>
> Now, this was working perfectly till now. Now, I need to create a
> huge chart with lot of keys and fields. But, when I tried the same
> mechanism, it failed because it is above the maximum characters
> supported by GET. Even though I could not find any specific spec which
> mentioned the max char limit, I understand that many browsers support
> very less characters only ~300.
I believe Firefox and Safari support around 8000 characters but IE 7.0
goes to only around 2000.
>
> In such a case, how can I create the chart on the fly? Is there a
> way to send the data as POST while hardlinking?
> Since I am getting the
> values and generating the links using templates, I cannot think of too
> many options. What si the usual mechanism used by fellow Djangoites?
May be try to replicate what Google Charts API does?
http://code.google.com/apis/chart/
In particular, look at their various Data encoding options.
-RD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---