Skip to content
Snippets Groups Projects
Commit 233ffa63 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Qual: Simplification des classes de graph. Correction pb sur titre et...

Qual: Simplification des classes de graph. Correction pb sur titre et utilisation max de la zone pour le graph.
parent b1c6a1ea
Branches
Tags
No related merge requests found
...@@ -31,17 +31,16 @@ include_once(DOL_DOCUMENT_ROOT."/graph.class.php"); ...@@ -31,17 +31,16 @@ include_once(DOL_DOCUMENT_ROOT."/graph.class.php");
/** /**
\class BarGraph \class BarGraph
\brief Classe permettant la gestion des graphs phplot \brief Classe permettant la gestion des graphs Bar a travers de PHPlot
\remarks Utilisation: \remarks Usage:
$px = new BarGraph();
$graph_data = array("1"=>10,"2"=>20); $graph_data = array("1"=>10,"2"=>20);
$px = new BarGraph();
$px->SetData($graph_data); $px->SetData($graph_data);
$px->SetTitle("title"); $px->SetTitle("title");
$px->SetLegend(array("Val1","Val2")); $px->SetLegend(array("Val1","Val2"));
$px->width = 380; $px->SetWidth(width);
$px->height = 200; $px->SetHeight(height);
$px->draw("fichier.png"); $px->draw("file.png");
*/ */
class BarGraph extends Graph class BarGraph extends Graph
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment