I am using PHPlot for creating a dynamic graph.
My requirement is as follows.
I want to display a graph based on the market indexvalues
from database and the code is like this.
$sql_dt ="select indexvalue as indexs from indexvalues order by indexdate";
$result = $MemCon->MemberValidation($sql_dt);
//print ('$sql_dt');
while ($row = mysql_fetch_row($result)) {
$value[] = $row[0];
$data = array(
array("a",1,1),
array("b",'$value'),
);
$graph->SetDataValues($example_data);
$graph->SetPlotType("area");
$graph->SetDataColors(array("blue","blue"),array("green","yellow"));
My graph is not working properly however.Can anyone help with this, I am new to PHP as well as GD Library.Any help is highly appreciable.
Thanks
Jc