On 17-06-10 19:49, Martynas Mickevičius wrote:
First of all pros:

Which has as a big benefit that you don't need to store any intermediate data in e.g. the php session. Or get it from MySQL again.


Cons
The only real problem that I see is the longer script execution times. However all the charts will be generated only on user request, so we can assume that the user knows that the chart is coming soon and expects to wait a little bit more.

Both techniques are easy to implement. I have already images as base64 strings working. Changing this would be a matter of minutes.

What do you think?

Base64 images seems like an elegant solution to me. I agree that the biggest drawback is the longer execution time. But in a scenario where you want to have a fast loading UI and load these graphs in the background, Javascript rendering would be available.
So it that case you would use a different rendering engine.

-- 
Met vriendelijke groet / Regards,

Herman van Rink 
Initfour websolutions