Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/05/2008, 09:30
MoonK
 
Fecha de Ingreso: marzo-2008
Mensajes: 4
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Error al utilizar Jpgraph

A mi tab me sale eso cuando utilizo el JpGraph.. aki les dejo el codigo

<?php

require_once('conexion2.php');

$con=conectando();

$Notas=$con->Execute("select perlle.periodo as periodo, perlle.pplle as promedio from replica.perlle where codalu='031284E' order by perlle.periodo");

while($reg=$Notas->fetchRow()){

$data[$pos]=$reg['PROMEDIO'];

$pos++;

}

include ("jpgraph/inc/jpgraph.php");

include ("jpgraph/inc/jpgraph_line.php");

$graph = new Graph(450, 250, "auto");

$graph->SetScale("textlin");

$graph->img->SetAntiAliasing();

$graph->xgrid->Show();



// Create the linear plot

$lineplot=new LinePlot($data);

$lineplot->SetColor("black");

$lineplot->SetWeight(2);

$lineplot->SetLegend("Promedio");



// Setup margin and titles

$graph->img->SetMargin(40,20,20,40);

$graph->title->Set("Escala de Rendimiento Academico");

$graph->xaxis->title->Set("Periodo");

$graph->yaxis->title->Set("Promedio");

$graph->ygrid->SetFill(true,'#[email protected]','#[email protected]');

//$graph->SetShadow();



// Add the plot to the graph

$graph->Add($lineplot);



// Display the graph

$graph->Stroke();





?>



Aunke creo q tengo q cambiar los permisos algo asi lei.. tengo q cambiar los permisos del php la verdad kisiera q em apoyen jjajaja.. es q noc q hacer...

Saludos besos bye.

Luna