Enviado em 28/06/2015 - 16:38h
Gente estou conseguindo fazer meu graficos beleza, tudo certinho.
<?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();
?>
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie