I am trying to create a graph similar to the goal.png graph,
This gives me the current.png graph,
$strParam="caption=Active Projects;rotateValues=1;xAxisName=Project;PYAxisName=Revenue;SYAXisName=name;numberSuffix=%;sNumberSuffix=%25;SYAxisMinValue=0;SYAxisMaxValue=100;showValues=0;useroundedges=1;showSum=1;use3DLighting=1";
$FC->setChartParams($strParam);
do {
$pname = $row_projectList['project_name'];
$urlpname = urlencode($row_projectList['project_name']);
$pc = $row_projectList['percentage_complete']*100;
$tdate = $row_projectList['ifs_target_date'];
switch ($pc) {
case ($pc < 10):
$color = "color=FF0000";
break;
case ($pc > 60):
$color = "color=00FF33";
break;
default:
$color = "color=FFFF00";
}
# Add Multi-series Dataset
$FC->createMSStDataset();
# Add Multi-series dataset with in dataset
$FC->addCategory("".$pname."");
$FC->addMSStSubDataset("".$urlpname."", "");
# Add set data for plotting the chart
$FC->addChartData("".$pc."", "".$color."");
} while ($row_projectList = mysql_fetch_assoc($projectList));
What I really need is for the tdate to be the yaxis while still showing the percentage.