SuperDelic

PHP + MySQL + FusionCharts multiple chart performance

Recommended Posts

The documentation I've seen for loading multiple charts appears to revolve around JavaScript or ASP, not PHP.

The problem I'm having is I could have a page with 4 charts (using FusionCharts v3, licensed), with each MySQL query tuned to return results in 5 seconds. However, when it comes to rendering them, the web page appears to wait until all queries have been run to begin rendering, which could be around 30 seconds (too long to wait, in the client's eyes).

I want to verify the following:

  1. Using PHP, can I apply an empty movie to each chart in order to load the page, then render the charts in order from Top Left -> Top Right -> Bottom Left -> Bottom Right? What is the PHP syntax for this? Are there files I need to include?
  2. Can I assign the dynamically-created XML into an array, then render the charts in order, without waiting for all other charts to render first?

Thank you. These charts are a huge hit with our clients, and rendering performance was their only complaint.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now