From 0db72852fb198d036d1918cd20ae5e33f4999ac1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 3 Dec 2020 20:18:37 +0100 Subject: [PATCH] Fix height of graph --- htdocs/compta/facture/index.php | 4 ++-- htdocs/fourn/facture/index.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/facture/index.php b/htdocs/compta/facture/index.php index eb73132c69f..e96371ad4f4 100644 --- a/htdocs/compta/facture/index.php +++ b/htdocs/compta/facture/index.php @@ -192,10 +192,10 @@ function getPieChart($socid = 0) { $dolgraph = new DolGraph(); $dolgraph->SetData($dataseries); - $dolgraph->setShowLegend(1); + $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(['pie']); - $dolgraph->setWidth('100%'); + $dolgraph->setHeight('200'); $dolgraph->draw('idgraphthirdparties'); $result .= ''; diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 3c223ce0837..494f5d2aa03 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -193,10 +193,10 @@ function getPieChart($socid = 0) { $dolgraph = new DolGraph(); $dolgraph->SetData($dataseries); - $dolgraph->setShowLegend(1); + $dolgraph->setShowLegend(2); $dolgraph->setShowPercent(1); $dolgraph->SetType(['pie']); - $dolgraph->setWidth('100%'); + $dolgraph->setHeight('200'); $dolgraph->draw('idgraphthirdparties'); $result .= '';