By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,254 Members | 2,365 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,254 IT Pros & Developers. It's quick & easy.

Creating a radar graph using jpgraph

P: 6
Hi all,

I am creating a radar chart containing 2 plots using jpgraph. My code is as follows:-

include ("./jpgraph/src/jpgraph.php");
include ("./jpgraph/src/jpgraph_radar.php");

// Create the basic radar graph
$graph = new RadarGraph(700,500,"auto");

// Set background color and shadow

// Position the graph

// Setup the axis formatting

// Setup the grid lines

// Setup graph titles
$graph->title->Set("Essential Attributes Vs Population Mean");
$graph->SetTitles(array("Attitude Towards Others","Meeting Standards","Job Ethic","Problem Solving","Respect For Property","Results Orientation","Attention To Detail","Consistency and Reliability"));

// Create the first radar plot
$plot = new RadarPlot(array(9.0,8.6,8.0,7.0,7.0,6.0,5.0,4.0));
$plot->SetLegend("Essential Talents");


// Create the second radar plot
$plot2 = new RadarPlot(array(6.0,7.0,7.0,7.1,7.5,8.0,8.0,8.1));
$plot2->SetLegend("Essential Talents: Population Mean");

// Add the plots to the graph

// And output the graph

However what I need is to display the data point values for plot2 beside every plot mark.. not able to figure that out.. hope someone can help.

Jul 30 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.