bburch2000

server-side Gantt chart

Recommended Posts

Hi,

Does the FusionCharts archive include sample PHP code for running a Gantt chart from the server side?

I’ve been trying to adapt the multiseries Col2d example listed below. It uses a single table with four columns, then has a “while” loop run through each row to load four arrays.

http://forum.fusioncharts.com/topic/19496-multi-series-2d-column-chart-from-mysql/#comment-67735

For Gantt, I’ve tried three “while” loops to run through Category, Process, and Task tables. But I don’t really know PHP and haven't been able to get it working.

I’m hoping somebody at FusionCharts has done a server-side implementation of the Gantt chart for PHP.

Thanks!

Bill

Share this post


Link to post
Share on other sites
Hello,
 
Thanks for the query.
 
We are sharing a sample of a multi series chart, created using PHP and MySQL where the data format is in XML.
 
Kindly refer the sample attached below and form data source for Gantt chart like this.
 
Please find the sample fiddle given below to know more about the data source format required for Gantt chart.

Hope this will help.

mscombi2d_sql_xml.zip

Share this post


Link to post
Share on other sites

Hmmm, OK, you're using some new operators (addChild, addAttribute), which look like they could clean up the code. Still using a single while loop to iterate over a single table with four columns.

I'm guessing there's no server-side Gantt example sitting around. Those new operators might clean things up enough for me to understand how the multidimensional arrays are getting used.

Thanks, Prerana! I'll study the example. If I get something working, I'll post it here.

Bill

Edited by bburch2000

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