masterpuppet gracias por responder, te comento que apenas inicio con laravel.
En consola escribi
composer require jpgraph/jpgraph:dev-master
Código BASH:
Ver original# composer require jpgraph/jpgraph:dev-master
composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing jpgraph/jpgraph (dev-master ad26df5)
Cloning ad26df5941e847cf1255aecd2011ce16207304cf
Writing lock file
Generating autoload files
Generating optimized class loader
Compiling common classes
y comprobe
Código BASH:
Ver original[root@Manizales-20 jpgraph]# ls
composer.json lib README.md
[root@Manizales-20 jpgraph]# pwd
/var/www/html/meteo/vendor/jpgraph/jpgraph
osea que hasta el momento ya tendría la librería osea que como la empiezo a utilizar o a invocar, por que cuando no se utiliza un framework seria asi
Código PHP:
Ver original$graph = new Graph(800,250,'auto');
$graph->SetScale('linlin');
$graph->SetMargin(40,40,30,130);
$graph->title->Set('Temperatutra');
$graph->title->SetFont(FF_ARIAL,FS_NORMAL,12);
$graph->xaxis->SetPos('min');
$graph->xaxis->SetLabelAngle(0);
$graph->yaxis->SetTitle("Grados Centigrados (C)",'center');
$graph->xaxis->SetTitle("Tiempo",'center');
$graph->xaxis->SetTickSide(SIDE_DOWN);
$graph->xaxis->SetTickLabels($xdata);
$graph->xgrid->Show();
$p1 = new LinePlot($ydata);
$p1->SetColor('teal');
$graph->Add($p1);
$graph->Stroke();