ra.abreu 0 Denunciar post Postado Junho 28, 2015 Gente estou conseguindo fazer meu graficos beleza, tudo certinho. só quero posicionar as legendas de forma que nao atrapalhe o meu grafico. vou mandar um exemplo que usa a função "SETPOS()" e abaixo do codigo o erro que é mostrado na minha tela. <?php require_once('jpgraph/jpgraph.php'); require_once('jpgraph/jpgraph_pie.php'); // Some data $data = array(50,15,25,10,31,20); // A new graph $graph = new PieGraph(400,420); $graph->SetShadow(); $graph->title->Set('Using JpGraph Library'); // The pie plot $p1 = new PiePlot($data); $p1->SetSliceColors(array('darkred','navy','lightblue','orange','gray','teal')); // Legends $p1->SetLegends(array("May (%1.1f%%)","June (%1.1f%%)","July (%1.1f%%)","Aug (%1.1f%%)", "Sep (%1.1f%%)", "Oct (%1.1f%%)")); $graph->legend->SetPos(0.5,0.97,'center','bottom'); $graph->legend->SetColumns(3); $graph->Add($p1); $graph->Stroke(); ?> erro que aparece na tela < Fatal error: Call to undefined method Legend::SetPos() in /var/www/linha.php on line 27 > alguem sabe como resolver isso? agradeço a atenção de todos. Compartilhar este post Link para o post Compartilhar em outros sites