469,575 Members | 1,498 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Creating a radar graph using jpgraph

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
0 3090

Post your reply

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

Similar topics

1 post views Thread by Frederes | last post: by
4 posts views Thread by Altramagnus | last post: by
9 posts views Thread by Patrick.O.Ige | last post: by
1 post views Thread by monomaniac21 | last post: by
5 posts views Thread by Kuna | last post: by
5 posts views Thread by Sonnich | last post: by
4 posts views Thread by riklaunim | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.