Sign in to follow this  
pcjeffmac

Need to Create a more dynamic StackBar2D graph

Recommended Posts

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.

post-5225-128441580599_thumb.png

post-5225-128441580617_thumb.png

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

 

 

 

This is not natively possible as of now.

 

 

 

However, you can use the displayValue attribute in the <set> elements to show the date as well as the percentage value.

 

e.g. <set label="1-2-09" displayValue="1-2-09 100%".

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
Sign in to follow this