From 233ffa6325e39e941ab38037a1d498fb3674009e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Jul 2005 14:07:55 +0000 Subject: [PATCH] Qual: Simplification des classes de graph. Correction pb sur titre et utilisation max de la zone pour le graph. --- htdocs/bargraph.class.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/htdocs/bargraph.class.php b/htdocs/bargraph.class.php index 718770e9923..8f171a7bb79 100644 --- a/htdocs/bargraph.class.php +++ b/htdocs/bargraph.class.php @@ -31,17 +31,16 @@ include_once(DOL_DOCUMENT_ROOT."/graph.class.php"); /** \class BarGraph - \brief Classe permettant la gestion des graphs phplot - \remarks Utilisation: - $px = new BarGraph(); + \brief Classe permettant la gestion des graphs Bar a travers de PHPlot + \remarks Usage: $graph_data = array("1"=>10,"2"=>20); + $px = new BarGraph(); $px->SetData($graph_data); $px->SetTitle("title"); $px->SetLegend(array("Val1","Val2")); - $px->width = 380; - $px->height = 200; - $px->draw("fichier.png"); - + $px->SetWidth(width); + $px->SetHeight(height); + $px->draw("file.png"); */ class BarGraph extends Graph