Estoy tratando de usar el pie 3d desde mi bd mysql, tengo el codigo para llamar los datos de la bd y el otro codigo lo pegué de la libreria pchart del grafico 3d....pero no se que esta mal sale error en línea 14...que pasa?
Código PHP:
<?php
/*
Example10 : A 3D exploded pie graph
*/
$db = mysql_connect("localhost", "root", "1Master10");
if ( $db == "" ) { echo " Error de conexión\r\n"; exit(); }
mysql_select_db("f1db",$db);
$Requete = "SELECT `id1`,`id2`,`id3`,`id4`,`id5`,`vueltarapida` FROM `grabaresultados` ORDER BY `id1`";
$result = mysql_query($Requete,$db);
while ($row = mysql_fetch_array($result))
{
$DataSet->AddPoint($row["id1"],"Serie1");
$DataSet->AddPoint($row["id2"],"Serie2");
$DataSet->AddPoint($row["id3"],"Serie3");
$DataSet->AddPoint($row["id4"],"Serie1");
$DataSet->AddPoint($row["id5"],"Serie2");
$DataSet->AddPoint($row["vueltarapida"],"Serie3");
}
$DataSet->AddAllSeries();
// Standard inclusions
include("pChart/pChart/pData.class");
include("pChart/pChart/pChart.class");
// Initialise the graph
$Test = new pChart(380,200);
$Test->drawFilledRoundedRectangle(7,7,373,193,5,240,240,240);
$Test->drawRoundedRectangle(5,5,375,195,5,230,230,230);
// Draw the pie chart
$Test->setFontProperties("pChart/Fonts/tahoma.ttf",8);
$Test->drawPieGraph($DataSet->GetData(),$DataSet->GetDataDescription(),150,90,110,TRUE,TRUE,50,20,5);
$Test->drawPieLegend(310,15,$DataSet->GetData(),$DataSet->GetDataDescription(),250,250,250);
$Test->Stroke("pChart/example10.png");
?>